diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /coreutils/id.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2 busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'coreutils/id.c')
-rw-r--r-- | coreutils/id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 1cc8c4d1d..536e946c0 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -102,7 +102,7 @@ int id_main(int argc, char **argv) | |||
102 | /* Print full info like GNU id */ | 102 | /* Print full info like GNU id */ |
103 | /* bb_getpwuid(0) doesn't exit on failure (returns NULL) */ | 103 | /* bb_getpwuid(0) doesn't exit on failure (returns NULL) */ |
104 | status = printf_full(uid, bb_getpwuid(NULL, 0, uid), 'u'); | 104 | status = printf_full(uid, bb_getpwuid(NULL, 0, uid), 'u'); |
105 | putchar(' '); | 105 | bb_putchar(' '); |
106 | status |= printf_full(gid, bb_getgrgid(NULL, 0, gid), 'g'); | 106 | status |= printf_full(gid, bb_getgrgid(NULL, 0, gid), 'g'); |
107 | 107 | ||
108 | #if ENABLE_SELINUX | 108 | #if ENABLE_SELINUX |
@@ -121,6 +121,6 @@ int id_main(int argc, char **argv) | |||
121 | } | 121 | } |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | putchar('\n'); | 124 | bb_putchar('\n'); |
125 | fflush_stdout_and_exit(status); | 125 | fflush_stdout_and_exit(status); |
126 | } | 126 | } |