diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:31:19 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:31:19 +0000 |
commit | 5ad9327a22bfc1149b585310dccd764229f01506 (patch) | |
tree | dbcdb52f7299f5c61cf00535c502d0539f2eb7c3 /bin | |
parent | 5485abc1bb7d02d5ed3892e9de35693e36a59bed (diff) | |
download | FreeBSD-src-5ad9327a22bfc1149b585310dccd764229f01506.zip FreeBSD-src-5ad9327a22bfc1149b585310dccd764229f01506.tar.gz |
- The first argument of getmode() is a void *
- Add WARNS?= 6
Approved by: stefanf, grehan (mentor)
Obtained from: DragonFlyBSD
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mkdir/Makefile | 1 | ||||
-rw-r--r-- | bin/mkdir/mkdir.c | 3 |
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; |