diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
| commit | 141d77b8cb6272fbbad34df51417ca2797f01e12 (patch) | |
| tree | 293c983836205dba2d6eec29a747ed131feb6900 /bin/chflags | |
| parent | 0a266c86a2a8af315bba5524e1eea841f87feae7 (diff) | |
Notes
Diffstat (limited to 'bin/chflags')
| -rw-r--r-- | bin/chflags/Makefile | 3 | ||||
| -rw-r--r-- | bin/chflags/chflags.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/bin/chflags/Makefile b/bin/chflags/Makefile index b545bfa90f2c..ebc9c0fa15fe 100644 --- a/bin/chflags/Makefile +++ b/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/bin/chflags/chflags.c b/bin/chflags/chflags.c index c19c7e4994a3..3ff36efc91bc 100644 --- a/bin/chflags/chflags.c +++ b/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; |
