aboutsummaryrefslogtreecommitdiff
path: root/toys/id.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-07 19:04:50 -0600
committerRob Landley <rob@landley.net>2012-03-07 19:04:50 -0600
commitf05f660d9c4f18aa4702d723ed7b35f7053ce08c (patch)
tree3fdb1393a989873a0d6f5a92cb4851031ac6db6f /toys/id.c
parentb7a4862fbf0df632837a53e230f4aa9cceb5f578 (diff)
downloadtoybox-f05f660d9c4f18aa4702d723ed7b35f7053ce08c.tar.gz
Consolidate headers.
Diffstat (limited to 'toys/id.c')
-rw-r--r--toys/id.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/toys/id.c b/toys/id.c
index 6ae3efe5..aaea3e37 100644
--- a/toys/id.c
+++ b/toys/id.c
@@ -25,9 +25,6 @@ config ID
-u Show only the effective user ID
*/
-#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
#include "toys.h"
#define FLAG_n (1<<4)
@@ -36,8 +33,8 @@ config ID
#define FLAG_r (1<<1)
#define FLAG_u 1
-void
-pretty_print(struct passwd *pw, struct group *grp, struct group **grps, int n)
+void pretty_print(struct passwd *pw, struct group *grp, struct group **grps,
+ int n)
{
int i;
printf("uid= %d(%s) gid= %d(%s)", pw->pw_uid, pw->pw_name,