projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ANSI
[unix-history]
/
usr
/
src
/
bin
/
sleep
/
sleep.c
diff --git
a/usr/src/bin/sleep/sleep.c
b/usr/src/bin/sleep/sleep.c
index
d0408cd
..
cba8f20
100644
(file)
--- a/
usr/src/bin/sleep/sleep.c
+++ b/
usr/src/bin/sleep/sleep.c
@@
-12,10
+12,12
@@
char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)sleep.c 5.
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)sleep.c 5.
5
(Berkeley) %G%";
#endif /* not lint */
#endif /* not lint */
+#include <unistd.h>
#include <stdio.h>
#include <stdio.h>
+#include <stdlib.h>
main(argc, argv)
int argc;
main(argc, argv)
int argc;
@@
-24,7
+26,7
@@
main(argc, argv)
int secs;
if (argc != 2) {
int secs;
if (argc != 2) {
-
fputs("usage: sleep time\n", stderr
);
+
(void)fprintf(stderr, "usage: sleep time\n"
);
exit(1);
}
if ((secs = atoi(argv[1])) > 0)
exit(1);
}
if ((secs = atoi(argv[1])) > 0)