summaryrefslogtreecommitdiffstats
path: root/bin/chflags
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chflags')
-rw-r--r--bin/chflags/Makefile2
-rw-r--r--bin/chflags/chflags.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/bin/chflags/Makefile b/bin/chflags/Makefile
index 4ba6a0a..30b6699 100644
--- a/bin/chflags/Makefile
+++ b/bin/chflags/Makefile
@@ -5,7 +5,5 @@ NOSHARED?=yes
PROG= chflags
CFLAGS+=-Wall
-DPADD= ${LIBUTIL}
-LDADD= -lutil
.include <bsd.prog.mk>
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index 2f4a96e..daeab4d 100644
--- a/bin/chflags/chflags.c
+++ b/bin/chflags/chflags.c
@@ -56,7 +56,6 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
-u_long string_to_flags __P((char **, u_long *, u_long *));
void usage __P((void));
int
@@ -122,7 +121,7 @@ main(argc, argv)
set = val;
oct = 1;
} else {
- if (string_to_flags(&flags, &set, &clear))
+ if (setflags(&flags, &set, &clear))
errx(1, "invalid flag: %s", flags);
clear = ~clear;
oct = 0;
OpenPOWER on IntegriCloud