summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/mkdir/Makefile1
-rw-r--r--bin/mkdir/mkdir.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/mkdir/Makefile b/bin/mkdir/Makefile
index fadc6b2..4df383b 100644
--- a/bin/mkdir/Makefile
+++ b/bin/mkdir/Makefile
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= mkdir
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c
index 3664853..93a39e6 100644
--- a/bin/mkdir/mkdir.c
+++ b/bin/mkdir/mkdir.c
@@ -62,7 +62,8 @@ int
main(int argc, char *argv[])
{
int ch, exitval, success, pflag;
- mode_t omode, *set = (mode_t *)NULL;
+ mode_t omode;
+ void *set = NULL;
char *mode;
omode = pflag = 0;
OpenPOWER on IntegriCloud