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 /procps/top.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 'procps/top.c')
-rw-r--r-- | procps/top.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/top.c b/procps/top.c index e55cecc..1b8c185 100644 --- a/procps/top.c +++ b/procps/top.c @@ -482,7 +482,7 @@ static NOINLINE void display_process_list(int count, int scr_width) s++; } /* printf(" %d", hist_iterations); */ - putchar(OPT_BATCH_MODE ? '\n' : '\r'); + bb_putchar(OPT_BATCH_MODE ? '\n' : '\r'); fflush(stdout); } #undef UPSCALE @@ -752,7 +752,7 @@ static NOINLINE void display_topmem_process_list(int count, int scr_width) printf("\n""%.*s", scr_width, line_buf); s++; } - putchar(OPT_BATCH_MODE ? '\n' : '\r'); + bb_putchar(OPT_BATCH_MODE ? '\n' : '\r'); fflush(stdout); #undef HDR_STR #undef MIN_WIDTH @@ -972,6 +972,6 @@ int top_main(int argc, char **argv) } #endif /* FEATURE_USE_TERMIOS */ } - putchar('\n'); + bb_putchar('\n'); return EXIT_SUCCESS; } |