summaryrefslogtreecommitdiff
path: root/src/unexenix.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-01-08 21:42:04 +0000
committerRoland McGrath <roland@gnu.org>1994-01-08 21:42:04 +0000
commit20c92ac78b197158acfa1ef6e006efc88e61c7dd (patch)
tree6879ce75cb78c86f76b79fd4726f94ec6803a107 /src/unexenix.c
parent15b74b81c26e1f62781af70c3f7aeabac686085a (diff)
downloademacs-20c92ac78b197158acfa1ef6e006efc88e61c7dd.tar.gz
Don't declare sys_errlist; declare strerror instead.
(fatal_unexec): Call strerror instead of using sys_errlist.
Diffstat (limited to 'src/unexenix.c')
-rw-r--r--src/unexenix.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/unexenix.c b/src/unexenix.c
index 20e1b06898a..9fb775a27ce 100644
--- a/src/unexenix.c
+++ b/src/unexenix.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,
@@ -66,8 +66,7 @@ static void fatal_unexec ();
fatal_unexec(_error_message, _error_arg);
extern int errno;
-extern int sys_nerr;
-extern char *sys_errlist[];
+extern char *strerror ();
#define EEOF -1
#ifndef L_SET
@@ -251,10 +250,8 @@ fatal_unexec (s, va_alist)
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);