summaryrefslogtreecommitdiff
path: root/test/pwd_grp/pwcat.c
diff options
context:
space:
mode:
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;