From 5ad9327a22bfc1149b585310dccd764229f01506 Mon Sep 17 00:00:00 2001 From: ssouhlal Date: Tue, 25 Jan 2005 14:31:19 +0000 Subject: - The first argument of getmode() is a void * - Add WARNS?= 6 Approved by: stefanf, grehan (mentor) Obtained from: DragonFlyBSD --- bin/mkdir/Makefile | 1 + bin/mkdir/mkdir.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/mkdir') 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 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; -- cgit v1.1