# HG changeset patch # User Roland McGrath # Date 758065437 0 # Node ID 64a936b21f74b34a281a12dcebda45db8cd05a58 # Parent d1d144ed5b762b8210b3bccb12b32b5716763a46 Don't declare sys_errlist; declare strerror instead. (main): Call strerror instead of using sys_errlist. diff -r d1d144ed5b76 -r 64a936b21f74 lib-src/emacsclient.c --- a/lib-src/emacsclient.c Sat Jan 08 21:42:04 1994 +0000 +++ b/lib-src/emacsclient.c Sat Jan 08 21:43:57 1994 +0000 @@ -1,11 +1,11 @@ /* Client process that communicates with GNU Emacs acting as server. - Copyright (C) 1986, 1987 Free Software Foundation, Inc. + Copyright (C) 1986, 1987, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -52,8 +52,7 @@ #include #include -extern int sys_nerr; -extern char *sys_errlist[]; +extern char *strerror (); extern int errno; main (argc, argv) @@ -137,8 +136,7 @@ if (cwd == 0) { /* getwd puts message in STRING if it fails. */ - fprintf (stderr, "%s: %s (%s)\n", argv[0], string, - (errno < sys_nerr) ? sys_errlist[errno] : "unknown error"); + fprintf (stderr, "%s: %s (%s)\n", argv[0], string, strerror (errno)); exit (1); }