From 977296812af958e4cc620897522fb99708ce7585 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 4 Apr 2000 14:12:35 +0000 Subject: 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. --- bin/chflags/chflags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/chflags/chflags.c') diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c index 784243e..c19c7e4 100644 --- a/bin/chflags/chflags.c +++ b/bin/chflags/chflags.c @@ -56,7 +56,7 @@ static const char rcsid[] = #include #include -extern u_long setflags __P((char **, u_long *, u_long *)); +int setflags __P((char **, u_long *, u_long *)); void usage __P((void)); -- cgit v1.1