summaryrefslogtreecommitdiffstats
path: root/usr.bin/wc/wc.c
diff options
context:
space:
mode:
authorjosef <josef@FreeBSD.org>2004-12-27 22:27:56 +0000
committerjosef <josef@FreeBSD.org>2004-12-27 22:27:56 +0000
commit4eebca2138d71cf530bfe31fb0500b951dd9a7ea (patch)
tree0d357cbf73bb8dc367f1277cc453095a20d795c1 /usr.bin/wc/wc.c
parent695c7fd8be13515acaaeb4b561ee88f005f774da (diff)
downloadFreeBSD-src-4eebca2138d71cf530bfe31fb0500b951dd9a7ea.zip
FreeBSD-src-4eebca2138d71cf530bfe31fb0500b951dd9a7ea.tar.gz
Remove warnings and make wc WARNS=6 clean.
Add FreeBSD Id to Makefile. Approved by: ssouhlal
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r--usr.bin/wc/wc.c7
1 files changed, 2 insertions, 5 deletions
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;
OpenPOWER on IntegriCloud