summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/pwent.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-07 23:46:22 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-07 23:46:22 +0000
commite2aa1f4fa9a36d223e271cc24dfad691f6a56d12 (patch)
treeff7678cf744386be5015ae0385a83410ddaca4d9 /libc/pwd_grp/pwent.c
parent59030d6f8ae481f69966aa9e1062af461b50e1b0 (diff)
Formatting update
Diffstat (limited to 'libc/pwd_grp/pwent.c')
-rw-r--r--libc/pwd_grp/pwent.c30
1 files changed, 12 insertions, 18 deletions
diff --git a/libc/pwd_grp/pwent.c b/libc/pwd_grp/pwent.c
index 51f76b53f..475c8e560 100644
--- a/libc/pwd_grp/pwent.c
+++ b/libc/pwd_grp/pwent.c
@@ -33,30 +33,24 @@
/* file descriptor for the password file currently open */
static int pw_fd = -1;
-void
-setpwent(void)
+void setpwent(void)
{
- if (pw_fd!=-1)
- close(pw_fd);
+ if (pw_fd != -1)
+ close(pw_fd);
- pw_fd=open("/etc/passwd", O_RDONLY);
+ pw_fd = open("/etc/passwd", O_RDONLY);
}
-void
-endpwent(void)
+void endpwent(void)
{
- if (pw_fd!=-1)
- close(pw_fd);
- pw_fd=-1;
+ if (pw_fd != -1)
+ close(pw_fd);
+ pw_fd = -1;
}
-struct passwd *
-getpwent(void)
+struct passwd *getpwent(void)
{
- if (pw_fd!=-1)
- return (__getpwent(pw_fd));
- return NULL;
+ if (pw_fd != -1)
+ return (__getpwent(pw_fd));
+ return NULL;
}
-
-
-