From b8aaa8bec8414f8e55cf9b61fe0873d242c773b8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 10 Jun 2003 22:20:55 +0000 Subject: mostly ansi cleanup; pval ok --- usr.bin/what/what.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'usr.bin/what/what.c') 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 @@ -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); -- cgit v1.2.3