Mercurial > hg > toybox
diff toys/id.c @ 533:31215cc6c9f2
Consolidate headers.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 07 Mar 2012 19:04:50 -0600 |
parents | 42a322adbd17 |
children | 06763d1a2f9d |
line wrap: on
line diff
--- a/toys/id.c Wed Mar 07 19:00:21 2012 -0600 +++ b/toys/id.c Wed Mar 07 19:04:50 2012 -0600 @@ -25,9 +25,6 @@ -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 @@ #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,