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:
parent
3ba359e7df
commit
977296812a
@ -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));
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user