summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/pw_scan.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-10-10 06:27:07 +0000
committercharnier <charnier@FreeBSD.org>1997-10-10 06:27:07 +0000
commitb93d92dbcd6b74a963fa228fcb3e6c8148017b1a (patch)
tree637981f27cf8061dedd767833027d1860432d104 /lib/libc/gen/pw_scan.c
parentc4198a70c7f56d54ec13a8e63e0f03bb8ad51d5d (diff)
downloadFreeBSD-src-b93d92dbcd6b74a963fa228fcb3e6c8148017b1a.zip
FreeBSD-src-b93d92dbcd6b74a963fa228fcb3e6c8148017b1a.tar.gz
Staticize usage(). Cosmetics.
Diffstat (limited to 'lib/libc/gen/pw_scan.c')
-rw-r--r--lib/libc/gen/pw_scan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/gen/pw_scan.c b/lib/libc/gen/pw_scan.c
index 00f640b..d474786 100644
--- a/lib/libc/gen/pw_scan.c
+++ b/lib/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);
}
OpenPOWER on IntegriCloud