diff options
author | Erik Andersen | 2000-05-17 05:24:24 +0000 |
---|---|---|
committer | Erik Andersen | 2000-05-17 05:24:24 +0000 |
commit | 5b46d792f1b42b9f7afbcb8226185ab519c435cb (patch) | |
tree | ebf9b8d5a1675283710cade0dc42f5171fa97439 /coreutils | |
parent | 499f65fb98a8258f8704b52efb3a99da0c82f785 (diff) | |
download | busybox-5b46d792f1b42b9f7afbcb8226185ab519c435cb.zip busybox-5b46d792f1b42b9f7afbcb8226185ab519c435cb.tar.gz |
Some more portability updates
-Erik
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/id.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 16cf083..23bbc16 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -43,7 +43,7 @@ extern int id_main(int argc, char **argv) { int no_user = 0, no_group = 0, print_real = 0; char *cp, *user, *group; - gid_t gid; + unsigned long gid; cp = user = group = NULL; @@ -82,10 +82,10 @@ extern int id_main(int argc, char **argv) my_getgrgid(group, gid); } - if (no_group) printf("%u\n", my_getpwnam(user)); - else if (no_user) printf("%u\n", my_getgrnam(group)); + if (no_group) printf("%lu\n", my_getpwnam(user)); + else if (no_user) printf("%lu\n", my_getgrnam(group)); else - printf("uid=%u(%s) gid=%u(%s)\n", + printf("uid=%lu(%s) gid=%lu(%s)\n", my_getpwnam(user), user, my_getgrnam(group), group); |