diff options
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r-- | usr.bin/chflags/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/chflags/chflags.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/chflags/Makefile b/usr.bin/chflags/Makefile index 4b48e98..df1a7dc 100644 --- a/usr.bin/chflags/Makefile +++ b/usr.bin/chflags/Makefile @@ -5,7 +5,7 @@ BINDIR= /bin NOSHARED?=yes PROG= chflags -CFLAGS+=-Wall SRCS= chflags.c +WARNS= 2 .include <bsd.prog.mk> diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index 3ff36ef..40c5b3f 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -56,6 +56,7 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> +int main __P((int, char *[])); void usage __P((void)); int @@ -163,7 +164,7 @@ main(argc, argv) } else { p->fts_statp->st_flags |= set; p->fts_statp->st_flags &= clear; - if (!chflags(p->fts_accpath, p->fts_statp->st_flags)) + if (!chflags(p->fts_accpath, (u_long)p->fts_statp->st_flags)) continue; } warn("%s", p->fts_path); |