aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wc
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-12-11 22:23:53 +0000
committerMark Murray <markm@FreeBSD.org>2001-12-11 22:23:53 +0000
commit7a8fb588c7c4578247d2f62f547a952a6e6293ad (patch)
treecbdd71614b9ba68043ee20b0f618adb78b5c5b60 /usr.bin/wc
parent075f293932a2d528611f0eac0b7406dc3dd25a0b (diff)
Notes
Diffstat (limited to 'usr.bin/wc')
-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 3793a905af2a..befb657d9e84 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;