summaryrefslogtreecommitdiffstats
path: root/usr.bin/chflags
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-20 06:21:12 +0000
committerkris <kris@FreeBSD.org>2001-05-20 06:21:12 +0000
commit3704482b086f1983807498cfc688742fc75f8c31 (patch)
treef2f3a692ed544a05086a20572d09ef861e5cf30d /usr.bin/chflags
parent345ed876ad338cf8dece7d3e0acbaa95bf714f4a (diff)
downloadFreeBSD-src-3704482b086f1983807498cfc688742fc75f8c31.zip
FreeBSD-src-3704482b086f1983807498cfc688742fc75f8c31.tar.gz
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r--usr.bin/chflags/Makefile2
-rw-r--r--usr.bin/chflags/chflags.c3
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);
OpenPOWER on IntegriCloud