aboutsummaryrefslogtreecommitdiff
path: root/toys/id.c
diff options
context:
space:
mode:
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,