summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-01-08 21:52:28 +0000
committerRoland McGrath <roland@gnu.org>1994-01-08 21:52:28 +0000
commitdbc52c10f4d9c6d7d7cca4c14c07048ec5752243 (patch)
treedf204c2f4911206fc85cb1f636b8e95043b01828 /lib-src
parent3935665143694e44fb1f44e80f107fea81f93cd2 (diff)
downloademacs-dbc52c10f4d9c6d7d7cca4c14c07048ec5752243.tar.gz
Don't declare sys_errlist; declare strerror instead.
(schedule, main): Call strerror instead of using sys_errlist.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/timer.c b/lib-src/timer.c
index c5265d5a9c9..8676b196597 100644
--- a/lib-src/timer.c
+++ b/lib-src/timer.c
@@ -30,7 +30,7 @@
extern int errno;
-extern char *sys_errlist[], *malloc ();
+extern char *strerror (), *malloc ();
extern time_t time ();
/*
@@ -116,7 +116,7 @@ schedule (str)
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 @@ main (argc, argv)
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 */