diff options
author | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /coreutils/stat.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-4daad9004d8f07991516970a1cbd77756fae7041.zip busybox-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 18e8e07..a0424d9 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -321,7 +321,7 @@ static void print_it(char const *masterformat, char const *filename, b = NULL; /* fall through */ case '%': - putchar('%'); + bb_putchar('%'); break; default: print_func(dest, n_alloc, *p, filename, data USE_SELINUX(,scontext)); @@ -552,7 +552,7 @@ static bool do_stat(char const *filename, char const *format) if (option_mask32 & OPT_SELINUX) printf(" %lc\n", *scontext); else - putchar('\n'); + bb_putchar('\n'); #endif } else { char *linkname = NULL; @@ -586,7 +586,7 @@ static bool do_stat(char const *filename, char const *format) (unsigned long) major(statbuf.st_rdev), (unsigned long) minor(statbuf.st_rdev)); else - putchar('\n'); + bb_putchar('\n'); printf("Access: (%04lo/%10.10s) Uid: (%5lu/%8s) Gid: (%5lu/%8s)\n", (unsigned long) (statbuf.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)), bb_mode_string(statbuf.st_mode), |