diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-09-08 07:21:30 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-09-08 07:21:30 +0000 |
commit | 0823f72b9dcce6ba0462a1128c4ae16bbc2ed9db (patch) | |
tree | 56cf3ac6feae3f1e7908266cd5cf1003abeb76ca | |
parent | 5971815a41976adc6ad8c74b25cbbc5bd9de70d8 (diff) |
flags_to_string() and string_to_flags() should take pointers to a u_int
not a u_long. Fixes PR #910.
-rw-r--r-- | bin/ls/stat_flags.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ls/stat_flags.c b/bin/ls/stat_flags.c index 17d34fba3eb..56f2df2ebc8 100644 --- a/bin/ls/stat_flags.c +++ b/bin/ls/stat_flags.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat_flags.c,v 1.3 1999/02/14 19:58:10 millert Exp $ */ +/* $OpenBSD: stat_flags.c,v 1.4 1999/09/08 07:21:29 millert Exp $ */ /* $NetBSD: stat_flags.c,v 1.5 1995/09/07 06:43:01 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)stat_flags.c 8.2 (Berkeley) 7/28/94"; #else -static char rcsid[] = "$OpenBSD: stat_flags.c,v 1.3 1999/02/14 19:58:10 millert Exp $"; +static char rcsid[] = "$OpenBSD: stat_flags.c,v 1.4 1999/09/08 07:21:29 millert Exp $"; #endif #endif /* not lint */ @@ -62,7 +62,7 @@ static char rcsid[] = "$OpenBSD: stat_flags.c,v 1.3 1999/02/14 19:58:10 millert */ char * flags_to_string(flags, def) - u_long flags; + u_int flags; char *def; { static char string[128]; @@ -107,7 +107,7 @@ flags_to_string(flags, def) int string_to_flags(stringp, setp, clrp) char **stringp; - u_long *setp, *clrp; + u_int *setp, *clrp; { int clear; char *string, *p; |