changeset 5525:1d84e80b47a4

Don't declare sys_errlist; declare strerror instead. (schedule, main): Call strerror instead of using sys_errlist.
author Roland McGrath <roland@gnu.org>
date Sat, 08 Jan 1994 21:52:28 +0000
parents f14a0fe979d9
children 5131e7d642b9
files lib-src/=timer.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/=timer.c	Sat Jan 08 21:50:14 1994 +0000
+++ b/lib-src/=timer.c	Sat Jan 08 21:52:28 1994 +0000
@@ -30,7 +30,7 @@
 
 
 extern int errno;
-extern char *sys_errlist[], *malloc ();
+extern char *strerror (), *malloc ();
 extern time_t time ();
 
 /*
@@ -116,7 +116,7 @@
   if (! ep->token)
     {
       fprintf (stderr, "%s: malloc %s: %s%c%s\n",
-	       pname, sys_errlist[errno], str, FS, p);
+	       pname, strerror (errno), str, FS, p);
       return;
     }
 
@@ -282,13 +282,13 @@
   if (fcntl (0, F_SETOWN, getpid ()) == -1)
     {
       fprintf (stderr, "%s: can't set ownership of stdin\n", pname);
-      fprintf (stderr, "%s\n", sys_errlist[errno]);
+      fprintf (stderr, "%s\n", strerror (errno));
       exit (1);
     }
   if (fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FASYNC) == -1)
     {
       fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname);
-      fprintf (stderr, "%s\n", sys_errlist[errno]);
+      fprintf (stderr, "%s\n", strerror (errno));
       exit (1);
     }
 #endif /* USG */