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.
This commit is contained in:
bde 2000-04-04 14:12:35 +00:00
parent 3ba359e7df
commit 977296812a
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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));