diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
commit | b8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch) | |
tree | 5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/window/main.c | |
parent | f18f6607440f6d2da08fac3522d88a65c77a5f3e (diff) |
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/window/main.c')
-rw-r--r-- | usr.bin/window/main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/window/main.c b/usr.bin/window/main.c index 61696f9eb7e..2487f2f1c17 100644 --- a/usr.bin/window/main.c +++ b/usr.bin/window/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.8 2003/06/03 02:56:23 millert Exp $ */ +/* $OpenBSD: main.c,v 1.9 2003/06/10 22:20:54 deraadt Exp $ */ /* $NetBSD: main.c,v 1.6 1996/02/08 20:45:01 mycroft Exp $ */ /* @@ -43,7 +43,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.8 2003/06/03 02:56:23 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.9 2003/06/10 22:20:54 deraadt Exp $"; #endif #endif /* not lint */ @@ -59,8 +59,7 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.8 2003/06/03 02:56:23 millert Exp $" #define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)(long)usage())) /*ARGSUSED*/ -main(argc, argv) -char **argv; +main(int argc, char *argv[]) { char *p; char fflag = 0; @@ -198,9 +197,9 @@ bad: return 0; } -usage() +usage(void) { - (void) fprintf(stderr, "Usage: window [-e escape-char] [-c command] [-t] [-f] [-d]\n"); + fprintf(stderr, "Usage: window [-e escape-char] [-c command] [-t] [-f] [-d]\n"); exit(1); return 0; /* for lint */ } |