diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
commit | b4339b74aded4c38ebcfe3a2a9b37b900abb8874 (patch) | |
tree | fb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/script/script.c | |
parent | 228b93ce829543fee06561687a63c17a7e821dfd (diff) | |
download | FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.zip FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.tar.gz |
ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index c589239..25c5bdc 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -79,9 +79,7 @@ void finish(void); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int cc; struct termios rtt, stt; @@ -199,7 +197,7 @@ main(argc, argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: script [-a] [-q] [-k] [-t time] [file] [command]\n"); @@ -207,7 +205,7 @@ usage() } void -finish() +finish(void) { pid_t pid; int die, e, status; @@ -229,8 +227,7 @@ finish() } void -doshell(av) - char **av; +doshell(char **av) { const char *shell; @@ -252,15 +249,14 @@ doshell(av) } void -fail() +fail(void) { (void)kill(0, SIGTERM); done(1); } void -done(eno) - int eno; +done(int eno) { time_t tvec; |