summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-10 22:20:44 +0000
committerderaadt <deraadt@openbsd.org>2003-06-10 22:20:44 +0000
commit1837a5ca509d93cac77d2e89322c0c4869f9215d (patch)
tree52dbe14a25e44bdf8161f4c51f39a50c072fe221 /usr.bin/script/script.c
parentIt would kind of help if the flags member was initialized, otherwise random (diff)
downloadwireguard-openbsd-1837a5ca509d93cac77d2e89322c0c4869f9215d.tar.xz
wireguard-openbsd-1837a5ca509d93cac77d2e89322c0c4869f9215d.zip
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index e94efad6029..38dd56fbfcd 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -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 @@ static char copyright[] =
#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 <sys/types.h>
@@ -108,9 +108,7 @@ void scriptflush(int);
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 @@ main(argc, argv)
}
void
-finish(signo)
- int signo;
+finish(int signo)
{
int save_errno = errno;
int status, e = 1;
@@ -217,8 +214,7 @@ finish(signo)
}
void
-handlesigwinch(signo)
- int signo;
+handlesigwinch(int signo)
{
int save_errno = errno;
struct winsize win;
@@ -233,7 +229,7 @@ handlesigwinch(signo)
}
void
-dooutput()
+dooutput(void)
{
struct sigaction sa;
struct itimerval value;
@@ -281,14 +277,13 @@ dooutput()
}
void
-scriptflush(signo)
- int signo;
+scriptflush(int signo)
{
flush = 1;
}
void
-doshell()
+doshell(void)
{
char *shell;
@@ -305,7 +300,7 @@ doshell()
}
void
-fail()
+fail(void)
{
(void)kill(0, SIGTERM);
@@ -313,8 +308,7 @@ fail()
}
void
-done(eval)
- int eval;
+done(int eval)
{
time_t tvec;