From 167c036e91fb24a62d627d16a2f3afa6d875c9e2 Mon Sep 17 00:00:00 2001 From: archie Date: Sun, 6 Dec 1998 22:58:23 +0000 Subject: Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). --- usr.bin/chflags/Makefile | 1 + usr.bin/chflags/chflags.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/chflags') diff --git a/usr.bin/chflags/Makefile b/usr.bin/chflags/Makefile index d269255..d05ff81 100644 --- a/usr.bin/chflags/Makefile +++ b/usr.bin/chflags/Makefile @@ -3,6 +3,7 @@ NOSHARED?=yes PROG= chflags +CFLAGS+=-Wall SRCS= chflags.c stat_flags.c .PATH: ${.CURDIR}/../../bin/ls diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index f33f46e..6646094 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -32,13 +32,13 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1992, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94"; +static const char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94"; #endif /* not lint */ #include -- cgit v1.1