summaryrefslogtreecommitdiff
path: root/test/pwd_grp/pwcat.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-02 21:55:06 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-02 21:55:06 +0000
commitdae4f33e486b80e3d957e35355ca0a63cd90f4bd (patch)
treeb4c96edde14b9ae4e3da83d979d3e41c4f894dd6 /test/pwd_grp/pwcat.c
parentded0e9aba41f65618cc4b329cdad753f01f9875a (diff)
Additional passwd and group tests
Diffstat (limited to 'test/pwd_grp/pwcat.c')
-rw-r--r--test/pwd_grp/pwcat.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/test/pwd_grp/pwcat.c b/test/pwd_grp/pwcat.c
index d6ad0b64b..afad8e18b 100644
--- a/test/pwd_grp/pwcat.c
+++ b/test/pwd_grp/pwcat.c
@@ -8,28 +8,18 @@
* Public Domain
*/
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <stdio.h>
#include <pwd.h>
-
-#if defined (STDC_HEADERS)
#include <stdlib.h>
-#endif
-int
-main(argc, argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
{
struct passwd *p;
while ((p = getpwent()) != NULL)
- printf("%s:%s:%ld:%ld:%s:%s:%s\n",
- p->pw_name, p->pw_passwd, (long) p->pw_uid,
- (long) p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell);
+ printf("%s:%s:%ld:%ld:%s:%s:%s\n",
+ p->pw_name, p->pw_passwd, (long) p->pw_uid,
+ (long) p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell);
endpwent();
return 0;