aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/chflags
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2000-06-28 02:33:17 +0000
committerJosef Karthauser <joe@FreeBSD.org>2000-06-28 02:33:17 +0000
commit7c6e002bd54dbb299d39524acb8dda62e348c61a (patch)
tree45a6bd02c083978f1cbd06a85f5b21c6b509cecd /usr.bin/chflags
parenta588b737eef3d1ff92d4f42e80a339c264966533 (diff)
Notes
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r--usr.bin/chflags/Makefile3
-rw-r--r--usr.bin/chflags/chflags.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/chflags/Makefile b/usr.bin/chflags/Makefile
index b545bfa90f2c..ebc9c0fa15fe 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 c19c7e4994a3..3ff36efc91bc 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;