From 19ced5c4253bc154aa499a72b6343e01245c92c0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Jun 2010 21:53:09 +0200 Subject: pipe_progress: make it independent of printf machinery function old new delta bb_putchar_stderr - 24 +24 ParseField 494 471 -23 progress_meter 212 188 -24 xargs_main 888 842 -46 pipe_progress_main 151 105 -46 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139) Total: -115 bytes Signed-off-by: Denys Vlasenko --- debianutils/pipe_progress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debianutils') diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c index ced5fb3..6adefac 100644 --- a/debianutils/pipe_progress.c +++ b/debianutils/pipe_progress.c @@ -24,12 +24,12 @@ int pipe_progress_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) time_t new_time = time(NULL); if (new_time != t) { t = new_time; - fputc('.', stderr); + bb_putchar_stderr('.'); } full_write(STDOUT_FILENO, buf, len); } - fputc('\n', stderr); + bb_putchar_stderr('\n'); return 0; } -- cgit v1.1