diff options
author | Roland McGrath <roland@gnu.org> | 1994-01-08 21:42:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-01-08 21:42:04 +0000 |
commit | ce0b3883e4992f3ff00c611ad009d1c52e501c21 (patch) | |
tree | 7670638b91bf1bc0b83860be391020b41d2c5ea2 /src/unexmips.c | |
parent | 7700d5a54e4c535d3d4e66a12dc7230e1d81b5f9 (diff) | |
download | emacs-ce0b3883e4992f3ff00c611ad009d1c52e501c21.tar.gz |
Don't declare sys_errlist; declare strerror instead.
(fatal_unexec): Call strerror instead of using sys_errlist.
Diffstat (limited to 'src/unexmips.c')
-rw-r--r-- | src/unexmips.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/unexmips.c b/src/unexmips.c index b39adfc9c39..8dffa695a5b 100644 --- a/src/unexmips.c +++ b/src/unexmips.c @@ -6,13 +6,13 @@ we don't plan to think about it, or about whether other Emacs maintenance might break it. - Copyright (C) 1988 Free Software Foundation, Inc. + Copyright (C) 1988, 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, @@ -59,8 +59,7 @@ static void mark_x (); fatal_unexec (_error_message, _error_arg); extern int errno; -extern int sys_nerr; -extern char *sys_errlist[]; +extern char *strerror (); #define EEOF -1 static struct scnhdr *text_section; @@ -300,15 +299,13 @@ mark_x (name) static void fatal_unexec (s, va_alist) - va_dcl + va_dcl { va_list ap; if (errno == EEOF) fputs ("unexec: unexpected end of file, ", stderr); - else if (errno < sys_nerr) - fprintf (stderr, "unexec: %s, ", sys_errlist[errno]); else - fprintf (stderr, "unexec: error code %d, ", errno); + fprintf (stderr, "unexec: %s, ", strerror (errno)); va_start (ap); _doprnt (s, ap, stderr); fputs (".\n", stderr); |