aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/checknr
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
committerArchie Cobbs <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
commitfa146c53357ea20afd3661d8093ea1db44198d5f (patch)
treea75604be1743b2dbb3ae09ab3f3275f9f1d33d75 /usr.bin/checknr
parent872963ff956b81ce07e442531158371f50388eb4 (diff)
downloadsrc-fa146c53357ea20afd3661d8093ea1db44198d5f.tar.gz
src-fa146c53357ea20afd3661d8093ea1db44198d5f.zip
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Notes
Notes: svn path=/head/; revision=41568
Diffstat (limited to 'usr.bin/checknr')
-rw-r--r--usr.bin/checknr/Makefile1
-rw-r--r--usr.bin/checknr/checknr.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/checknr/Makefile b/usr.bin/checknr/Makefile
index c26524876bd4..85e4c48e827d 100644
--- a/usr.bin/checknr/Makefile
+++ b/usr.bin/checknr/Makefile
@@ -1,5 +1,6 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= checknr
+CFLAGS+=-Wall
.include <bsd.prog.mk>
diff --git a/usr.bin/checknr/checknr.c b/usr.bin/checknr/checknr.c
index f8531cc7da13..743ed04e24c5 100644
--- a/usr.bin/checknr/checknr.c
+++ b/usr.bin/checknr/checknr.c
@@ -32,13 +32,13 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1980, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93";
+static const char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
/*