summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/grent.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/grent.c
parent59030d6f8ae481f69966aa9e1062af461b50e1b0 (diff)
Formatting update
Diffstat (limited to 'libc/pwd_grp/grent.c')
-rw-r--r--libc/pwd_grp/grent.c31
1 files changed, 13 insertions, 18 deletions
diff --git a/libc/pwd_grp/grent.c b/libc/pwd_grp/grent.c
index 19d618b2b..aab878a89 100644
--- a/libc/pwd_grp/grent.c
+++ b/libc/pwd_grp/grent.c
@@ -28,30 +28,25 @@
#include <fcntl.h>
#include <grp.h>
-static int grp_fd=-1;
+static int grp_fd = -1;
-void
-setgrent(void)
+void setgrent(void)
{
- if (grp_fd!=-1)
- close(grp_fd);
- grp_fd=open("/etc/group", O_RDONLY);
+ if (grp_fd != -1)
+ close(grp_fd);
+ grp_fd = open("/etc/group", O_RDONLY);
}
-void
-endgrent(void)
+void endgrent(void)
{
- if (grp_fd!=-1)
- close(grp_fd);
- grp_fd=-1;
+ if (grp_fd != -1)
+ close(grp_fd);
+ grp_fd = -1;
}
-struct group *
-getgrent(void)
+struct group *getgrent(void)
{
- if (grp_fd==-1)
- return NULL;
- return __getgrent(grp_fd);
+ if (grp_fd == -1)
+ return NULL;
+ return __getgrent(grp_fd);
}
-
-