diff options
author | Bruce Evans <bde@FreeBSD.org> | 2000-04-04 14:12:35 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2000-04-04 14:12:35 +0000 |
commit | 508424d139074d71e44f1128800f9465e477a921 (patch) | |
tree | 78a13a133ad23284e104a40c8e7dca086cd5a72a /usr.bin/chflags/chflags.c | |
parent | afb8931fa8063708f71bc319251d9c2b91998ddd (diff) | |
download | src-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 'usr.bin/chflags/chflags.c')
-rw-r--r-- | usr.bin/chflags/chflags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index 784243e10268..c19c7e4994a3 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)); |