diff options
author | Xin LI <delphij@FreeBSD.org> | 2005-01-17 13:47:05 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2005-01-17 13:47:05 +0000 |
commit | a074c8897c7bb932ca868f24d70ec7f4e6d5333b (patch) | |
tree | 5cafec91ead98ced30e392751068fe00af75fa24 /usr.bin/mkfifo | |
parent | f5c4146d5a60b378bf5e8d58b78ba7bc5b94a349 (diff) | |
download | src-a074c8897c7bb932ca868f24d70ec7f4e6d5333b.tar.gz src-a074c8897c7bb932ca868f24d70ec7f4e6d5333b.zip |
Bump WARNS=6 by adding const constraint and initialize the pointer
to NULL at start.
Notes
Notes:
svn path=/head/; revision=140382
Diffstat (limited to 'usr.bin/mkfifo')
-rw-r--r-- | usr.bin/mkfifo/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/mkfifo/mkfifo.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mkfifo/Makefile b/usr.bin/mkfifo/Makefile index 30f013ecea41..bab308b133f6 100644 --- a/usr.bin/mkfifo/Makefile +++ b/usr.bin/mkfifo/Makefile @@ -2,5 +2,6 @@ # $FreeBSD$ PROG= mkfifo +WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/mkfifo/mkfifo.c b/usr.bin/mkfifo/mkfifo.c index 85cd6e145ac9..7e147b6b1497 100644 --- a/usr.bin/mkfifo/mkfifo.c +++ b/usr.bin/mkfifo/mkfifo.c @@ -65,8 +65,8 @@ static int f_mode; int main(int argc, char *argv[]) { - char *modestr; - void *modep; + const char *modestr = NULL; + const void *modep; mode_t fifomode; int ch, exitval; |