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/what/what.c | |
parent | f18f6607440f6d2da08fac3522d88a65c77a5f3e (diff) |
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/what/what.c')
-rw-r--r-- | usr.bin/what/what.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/what/what.c b/usr.bin/what/what.c index 54e408ab1ad..f2c624f29bf 100644 --- a/usr.bin/what/what.c +++ b/usr.bin/what/what.c @@ -1,4 +1,4 @@ -/* $OpenBSD: what.c,v 1.9 2003/06/03 02:56:22 millert Exp $ */ +/* $OpenBSD: what.c,v 1.10 2003/06/10 22:20:54 deraadt Exp $ */ /* $NetBSD: what.c,v 1.4 1994/12/20 16:01:03 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: what.c,v 1.9 2003/06/03 02:56:22 millert Exp $"; +static char rcsid[] = "$OpenBSD: what.c,v 1.10 2003/06/10 22:20:54 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -64,9 +64,7 @@ extern char *__progname; */ /* ARGSUSED */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { struct utsname utsn; char match[256]; @@ -103,8 +101,7 @@ main(argc, argv) } static void -search(match) - char *match; +search(char *match) { int c; int i; @@ -143,7 +140,7 @@ loop: if (c == '$') { } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: %s [-s] file ...\n", __progname); |