diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-10 06:27:07 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-10 06:27:07 +0000 |
commit | c797b0b96f9778ce18db137f07c7396a3924f69a (patch) | |
tree | 8a64389d1e85093e7f6674f02c4e71bf6ab0ddc3 /libc | |
parent | 1c918146f943052c1876cdc9983597efd1b4964f (diff) | |
download | pw-darwin-c797b0b96f9778ce18db137f07c7396a3924f69a.tar.gz pw-darwin-c797b0b96f9778ce18db137f07c7396a3924f69a.tar.zst pw-darwin-c797b0b96f9778ce18db137f07c7396a3924f69a.zip |
Staticize usage(). Cosmetics.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/gen/pw_scan.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c index 00f640b..d474786 100644 --- a/libc/gen/pw_scan.c +++ b/libc/gen/pw_scan.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)pw_scan.c 8.3 (Berkeley) 4/2/94"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ /* @@ -45,7 +49,6 @@ static char sccsid[] = "@(#)pw_scan.c 8.3 (Berkeley) 4/2/94"; #include <err.h> #include <fcntl.h> #include <pwd.h> -#include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -133,7 +136,7 @@ pw_scan(bp, pw) } if(p[0]) pw->pw_fields |= _PWF_SHELL; - if (p = strsep(&bp, ":")) { /* too many */ + if ((p = strsep(&bp, ":"))) { /* too many */ fmt: warnx("corrupted entry"); return (0); } |