From 3704482b086f1983807498cfc688742fc75f8c31 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 20 May 2001 06:21:12 +0000 Subject: Silence WARNS=2 and BDECFLAGS on alpha and i386 MFC after: 1 week --- bin/chflags/Makefile | 2 +- bin/chflags/chflags.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/chflags') diff --git a/bin/chflags/Makefile b/bin/chflags/Makefile index 4b48e98..df1a7dc 100644 --- a/bin/chflags/Makefile +++ b/bin/chflags/Makefile @@ -5,7 +5,7 @@ BINDIR= /bin NOSHARED?=yes PROG= chflags -CFLAGS+=-Wall SRCS= chflags.c +WARNS= 2 .include diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c index 3ff36ef..40c5b3f 100644 --- a/bin/chflags/chflags.c +++ b/bin/chflags/chflags.c @@ -56,6 +56,7 @@ static const char rcsid[] = #include #include +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); -- cgit v1.1