=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/script/script.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/script/script.c 2003/06/03 02:56:15 1.18 +++ src/usr.bin/script/script.c 2003/06/10 22:20:50 1.19 @@ -1,4 +1,4 @@ -/* $OpenBSD: script.c,v 1.18 2003/06/03 02:56:15 millert Exp $ */ +/* $OpenBSD: script.c,v 1.19 2003/06/10 22:20:50 deraadt Exp $ */ /* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */ /* @@ -65,7 +65,7 @@ #if 0 static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: script.c,v 1.18 2003/06/03 02:56:15 millert Exp $"; +static char rcsid[] = "$OpenBSD: script.c,v 1.19 2003/06/10 22:20:50 deraadt Exp $"; #endif /* not lint */ #include @@ -108,9 +108,7 @@ void handlesigwinch(int); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct sigaction sa; struct termios rtt; @@ -198,8 +196,7 @@ } void -finish(signo) - int signo; +finish(int signo) { int save_errno = errno; int status, e = 1; @@ -217,8 +214,7 @@ } void -handlesigwinch(signo) - int signo; +handlesigwinch(int signo) { int save_errno = errno; struct winsize win; @@ -233,7 +229,7 @@ } void -dooutput() +dooutput(void) { struct sigaction sa; struct itimerval value; @@ -281,14 +277,13 @@ } void -scriptflush(signo) - int signo; +scriptflush(int signo) { flush = 1; } void -doshell() +doshell(void) { char *shell; @@ -305,7 +300,7 @@ } void -fail() +fail(void) { (void)kill(0, SIGTERM); @@ -313,8 +308,7 @@ } void -done(eval) - int eval; +done(int eval) { time_t tvec;