diff options
Diffstat (limited to 'usr.bin/what')
-rw-r--r-- | usr.bin/what/what.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/what/what.c b/usr.bin/what/what.c index 65bdb13..c226715 100644 --- a/usr.bin/what/what.c +++ b/usr.bin/what/what.c @@ -60,9 +60,7 @@ static void usage(void); * what */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { int c; @@ -90,16 +88,16 @@ main(argc, argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: what [-s] [file ...]\n"); exit(1); } void -search() +search(void) { - register int c; + int c; while ((c = getchar()) != EOF) { loop: if (c != '@') |