diff options
author | joe <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
commit | 8de98cc2fa7b119cc8deb33c61c9496d25825b49 (patch) | |
tree | 33363d4028bb162e624a3a2c5257ab020378f6e0 /usr.bin/chflags | |
parent | 3e8b2c512359fd536c5f66fbd9e265064d461886 (diff) | |
download | FreeBSD-src-8de98cc2fa7b119cc8deb33c61c9496d25825b49.zip FreeBSD-src-8de98cc2fa7b119cc8deb33c61c9496d25825b49.tar.gz |
Switch over to using the new fflagstostr and strtofflags library calls.
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r-- | usr.bin/chflags/Makefile | 3 | ||||
-rw-r--r-- | usr.bin/chflags/chflags.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/chflags/Makefile b/usr.bin/chflags/Makefile index b545bfa..ebc9c0f 100644 --- a/usr.bin/chflags/Makefile +++ b/usr.bin/chflags/Makefile @@ -5,7 +5,6 @@ NOSHARED?=yes PROG= chflags CFLAGS+=-Wall -.PATH: ${.CURDIR}/../../lib/libc/gen -SRCS= chflags.c setflags.c +SRCS= chflags.c .include <bsd.prog.mk> diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index c19c7e4..3ff36ef 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -56,8 +56,6 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> -int setflags __P((char **, u_long *, u_long *)); - void usage __P((void)); int @@ -123,7 +121,7 @@ main(argc, argv) set = val; oct = 1; } else { - if (setflags(&flags, &set, &clear)) + if (strtofflags(&flags, &set, &clear)) errx(1, "invalid flag: %s", flags); clear = ~clear; oct = 0; |