summaryrefslogtreecommitdiffstats
path: root/usr.bin/chflags
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-04-04 14:12:35 +0000
committerbde <bde@FreeBSD.org>2000-04-04 14:12:35 +0000
commit977296812af958e4cc620897522fb99708ce7585 (patch)
tree6d6d1398d3ff4ecdea5a9b4de9f61bd22272ada4 /usr.bin/chflags
parent3ba359e7dfcf89be03a897c7c06963cd60d56342 (diff)
downloadFreeBSD-src-977296812af958e4cc620897522fb99708ce7585.zip
FreeBSD-src-977296812af958e4cc620897522fb99708ce7585.tar.gz
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.
Diffstat (limited to 'usr.bin/chflags')
-rw-r--r--usr.bin/chflags/chflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c
index 784243e..c19c7e4 100644
--- a/usr.bin/chflags/chflags.c
+++ b/usr.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));
OpenPOWER on IntegriCloud