diff options
author | Roland McGrath <[email protected]> | 1994-01-08 21:43:57 +0000 |
---|---|---|
committer | Roland McGrath <[email protected]> | 1994-01-08 21:43:57 +0000 |
commit | 92af894ffd42bbbfdbea693385b07e7faa5cf73f (patch) | |
tree | e9d89de307e4b08813c78a1b9e695dbd9d2e82e5 | |
parent | 20c92ac78b197158acfa1ef6e006efc88e61c7dd (diff) |
Don't declare sys_errlist; declare strerror instead.
(main): Call strerror instead of using sys_errlist.
-rw-r--r-- | lib-src/emacsclient.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 4219d0a0f5..b28acb26da 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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 @@ main (argc, argv) #include <stdio.h> #include <errno.h> -extern int sys_nerr; -extern char *sys_errlist[]; +extern char *strerror (); extern int errno; main (argc, argv) @@ -137,8 +136,7 @@ main (argc, argv) 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); } |