aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/timer.c
diff options
context:
space:
mode:
authorRoland McGrath1994-01-08 21:52:28 +0000
committerRoland McGrath1994-01-08 21:52:28 +0000
commitdbc52c10f4d9c6d7d7cca4c14c07048ec5752243 (patch)
treedf204c2f4911206fc85cb1f636b8e95043b01828 /lib-src/timer.c
parent3935665143694e44fb1f44e80f107fea81f93cd2 (diff)
downloademacs-dbc52c10f4d9c6d7d7cca4c14c07048ec5752243.tar.gz
emacs-dbc52c10f4d9c6d7d7cca4c14c07048ec5752243.zip
Don't declare sys_errlist; declare strerror instead.
(schedule, main): Call strerror instead of using sys_errlist.
Diffstat (limited to 'lib-src/timer.c')
-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 @@
30 30
31 31
32extern int errno; 32extern int errno;
33extern char *sys_errlist[], *malloc (); 33extern char *strerror (), *malloc ();
34extern time_t time (); 34extern time_t time ();
35 35
36/* 36/*
@@ -116,7 +116,7 @@ schedule (str)
116 if (! ep->token) 116 if (! ep->token)
117 { 117 {
118 fprintf (stderr, "%s: malloc %s: %s%c%s\n", 118 fprintf (stderr, "%s: malloc %s: %s%c%s\n",
119 pname, sys_errlist[errno], str, FS, p); 119 pname, strerror (errno), str, FS, p);
120 return; 120 return;
121 } 121 }
122 122
@@ -282,13 +282,13 @@ main (argc, argv)
282 if (fcntl (0, F_SETOWN, getpid ()) == -1) 282 if (fcntl (0, F_SETOWN, getpid ()) == -1)
283 { 283 {
284 fprintf (stderr, "%s: can't set ownership of stdin\n", pname); 284 fprintf (stderr, "%s: can't set ownership of stdin\n", pname);
285 fprintf (stderr, "%s\n", sys_errlist[errno]); 285 fprintf (stderr, "%s\n", strerror (errno));
286 exit (1); 286 exit (1);
287 } 287 }
288 if (fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FASYNC) == -1) 288 if (fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FASYNC) == -1)
289 { 289 {
290 fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname); 290 fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname);
291 fprintf (stderr, "%s\n", sys_errlist[errno]); 291 fprintf (stderr, "%s\n", strerror (errno));
292 exit (1); 292 exit (1);
293 } 293 }
294#endif /* USG */ 294#endif /* USG */