diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 21:53:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 21:53:09 +0200 |
commit | 19ced5c4253bc154aa499a72b6343e01245c92c0 (patch) | |
tree | c1c148612896e748749ce882ed25ad5ffd74418c /networking/tftp.c | |
parent | 5f3303712ef483d270097cae4ba0a559b1056121 (diff) | |
download | busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.tar.gz busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.tar.bz2 busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.zip |
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 <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index d76f7ae5b..ab4e25967 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -119,7 +119,7 @@ static void progress_meter(int flag) | |||
119 | if (flag == 0) { | 119 | if (flag == 0) { |
120 | /* last call to progress_meter */ | 120 | /* last call to progress_meter */ |
121 | alarm(0); | 121 | alarm(0); |
122 | fputc('\n', stderr); | 122 | bb_putchar_stderr('\n'); |
123 | } else { | 123 | } else { |
124 | if (flag == -1) { /* first call to progress_meter */ | 124 | if (flag == -1) { /* first call to progress_meter */ |
125 | signal_SA_RESTART_empty_mask(SIGALRM, progress_meter); | 125 | signal_SA_RESTART_empty_mask(SIGALRM, progress_meter); |