diff options
author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
commit | fa146c53357ea20afd3661d8093ea1db44198d5f (patch) | |
tree | a75604be1743b2dbb3ae09ab3f3275f9f1d33d75 /usr.bin/chflags | |
parent | 872963ff956b81ce07e442531158371f50388eb4 (diff) |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Notes
Notes:
svn path=/head/; revision=41568
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r-- | usr.bin/chflags/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/chflags/chflags.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/chflags/Makefile b/usr.bin/chflags/Makefile index d269255b6c65..d05ff81f8a1f 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 f33f46eeccf3..664609417ef5 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 <sys/types.h> |