summaryrefslogtreecommitdiff
path: root/usr.bin/cmp
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/cmp
parent872963ff956b81ce07e442531158371f50388eb4 (diff)
downloadsrc-test2-fa146c53357ea20afd3661d8093ea1db44198d5f.tar.gz
src-test2-fa146c53357ea20afd3661d8093ea1db44198d5f.zip
Notes
Diffstat (limited to 'usr.bin/cmp')
-rw-r--r--usr.bin/cmp/Makefile1
-rw-r--r--usr.bin/cmp/cmp.c4
-rw-r--r--usr.bin/cmp/misc.c2
-rw-r--r--usr.bin/cmp/regular.c2
-rw-r--r--usr.bin/cmp/special.c2
5 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/cmp/Makefile b/usr.bin/cmp/Makefile
index 1b84ce31b492..1ff3af6e6262 100644
--- a/usr.bin/cmp/Makefile
+++ b/usr.bin/cmp/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= cmp
+CFLAGS+=-Wall
SRCS= cmp.c misc.c regular.c special.c
.include <bsd.prog.mk>
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c
index da269d844a95..a4f4d8860563 100644
--- a/usr.bin/cmp/cmp.c
+++ b/usr.bin/cmp/cmp.c
@@ -32,13 +32,13 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1987, 1990, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
+static const char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/cmp/misc.c b/usr.bin/cmp/misc.c
index d5a601daf01a..248ef93f0b74 100644
--- a/usr.bin/cmp/misc.c
+++ b/usr.bin/cmp/misc.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
+static const char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/cmp/regular.c b/usr.bin/cmp/regular.c
index f540ab4aebe8..3b82bae11a69 100644
--- a/usr.bin/cmp/regular.c
+++ b/usr.bin/cmp/regular.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94";
+static const char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>
diff --git a/usr.bin/cmp/special.c b/usr.bin/cmp/special.c
index 0a15fa1b28f4..b843cc8fc9cc 100644
--- a/usr.bin/cmp/special.c
+++ b/usr.bin/cmp/special.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94";
+static const char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/types.h>