From 4eebca2138d71cf530bfe31fb0500b951dd9a7ea Mon Sep 17 00:00:00 2001 From: josef Date: Mon, 27 Dec 2004 22:27:56 +0000 Subject: Remove warnings and make wc WARNS=6 clean. Add FreeBSD Id to Makefile. Approved by: ssouhlal --- usr.bin/wc/wc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr.bin/wc/wc.c') diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 5afeb17..090ff77 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -69,9 +69,7 @@ static int cnt(const char *); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, errors, total; @@ -133,8 +131,7 @@ main(argc, argv) } static int -cnt(file) - const char *file; +cnt(const char *file) { struct stat sb; uintmax_t linect, wordct, charct; -- cgit v1.1