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 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;