From 6a4e19a831c98a56a73f7d89144e842361ee14c1 Mon Sep 17 00:00:00 2001 From: markm Date: Tue, 11 Dec 2001 22:23:53 +0000 Subject: WARNS=2 fix, use __FBSDID(). Not added to Makefgile as WARNS=2 will be made default. --- usr.bin/wc/wc.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'usr.bin/wc/wc.c') diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 3793a90..befb657 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -31,20 +31,19 @@ * SUCH DAMAGE. */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1980, 1987, 1991, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +#endif #ifndef lint -#if 0 static const char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93"; -#else -static const char rcsid[] = - "$FreeBSD$"; #endif -#endif /* not lint */ #include #include @@ -61,7 +60,7 @@ static const char rcsid[] = u_quad_t tlinect, twordct, tcharct; int doline, doword, dochar; -int cnt __P((char *)); +int cnt __P((const char *)); void usage __P((void)); int @@ -125,7 +124,7 @@ main(argc, argv) int cnt(file) - char *file; + const char *file; { struct stat sb; u_quad_t linect, wordct, charct; -- cgit v1.1