# HG changeset patch # User Roland McGrath # Date 758065948 0 # Node ID 1d84e80b47a4ba23e3c3fee36e28b2e7d5737847 # Parent f14a0fe979d9c75158d68205763389ba5a66c03c Don't declare sys_errlist; declare strerror instead. (schedule, main): Call strerror instead of using sys_errlist. diff -r f14a0fe979d9 -r 1d84e80b47a4 lib-src/=timer.c --- 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 */