summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-11 22:23:53 +0000
committermarkm <markm@FreeBSD.org>2001-12-11 22:23:53 +0000
commit6a4e19a831c98a56a73f7d89144e842361ee14c1 (patch)
treecbdd71614b9ba68043ee20b0f618adb78b5c5b60 /usr.bin
parentc6dc21807ec81299fd28bdfc0038d9c348d5a057 (diff)
downloadFreeBSD-src-6a4e19a831c98a56a73f7d89144e842361ee14c1.zip
FreeBSD-src-6a4e19a831c98a56a73f7d89144e842361ee14c1.tar.gz
WARNS=2 fix, use __FBSDID().
Not added to Makefgile as WARNS=2 will be made default.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/wc/wc.c15
1 files changed, 7 insertions, 8 deletions
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 <sys/cdefs.h>
+
+__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 <sys/param.h>
#include <sys/stat.h>
@@ -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;
OpenPOWER on IntegriCloud