aboutsummaryrefslogtreecommitdiff
path: root/bin/chflags
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-04-04 14:12:35 +0000
committerBruce Evans <bde@FreeBSD.org>2000-04-04 14:12:35 +0000
commit508424d139074d71e44f1128800f9465e477a921 (patch)
tree78a13a133ad23284e104a40c8e7dca086cd5a72a /bin/chflags
parentafb8931fa8063708f71bc319251d9c2b91998ddd (diff)
downloadsrc-508424d139074d71e44f1128800f9465e477a921.tar.gz
src-508424d139074d71e44f1128800f9465e477a921.zip
Fixed prototype for setflags(). setflags() returns int, not u_long,
and "extern" in function prototypes is a style bug. The type mismatch broke chflags(1) on i386's with 64-bit longs and may have broken it on alphas.
Notes
Notes: svn path=/head/; revision=59009
Diffstat (limited to 'bin/chflags')
-rw-r--r--bin/chflags/chflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index 784243e10268..c19c7e4994a3 100644
--- a/bin/chflags/chflags.c
+++ b/bin/chflags/chflags.c
@@ -56,7 +56,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
-extern u_long setflags __P((char **, u_long *, u_long *));
+int setflags __P((char **, u_long *, u_long *));
void usage __P((void));