diff options
author | delphij <delphij@FreeBSD.org> | 2005-01-17 13:47:05 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-01-17 13:47:05 +0000 |
commit | 015c6dffb51d3c6c2aba41899136c58df8844f3e (patch) | |
tree | 5cafec91ead98ced30e392751068fe00af75fa24 | |
parent | 75b14935238e7da7c35d459bc4c9be0fe65276f2 (diff) | |
download | FreeBSD-src-015c6dffb51d3c6c2aba41899136c58df8844f3e.zip FreeBSD-src-015c6dffb51d3c6c2aba41899136c58df8844f3e.tar.gz |
Bump WARNS=6 by adding const constraint and initialize the pointer
to NULL at start.
-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 30f013e..bab308b 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 85cd6e1..7e147b6 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; |