aboutsummaryrefslogtreecommitdiff
path: root/wget.c
diff options
context:
space:
mode:
authortausq <tausq@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-07 03:55:35 +0000
committertausq <tausq@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-07 03:55:35 +0000
commit259909d4ad697b2a5e02c5ddf3368348fe291141 (patch)
tree7e042071b0fbaecaedc292539704eb741fac0f50 /wget.c
parent96049f55808819c47af271304a65cbc97bd96247 (diff)
downloadbusybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.tar.gz
busybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.tar.bz2
busybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.zip
Write progress meter to stderr instead of stdout
git-svn-id: svn://busybox.net/trunk/busybox@1394 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'wget.c')
-rw-r--r--wget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wget.c b/wget.c
index 4a5934883..b43bbad62 100644
--- a/wget.c
+++ b/wget.c
@@ -424,7 +424,7 @@ progressmeter(int flag)
424 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), 424 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
425 "%02d:%02d ETA", i / 60, i % 60); 425 "%02d:%02d ETA", i / 60, i % 60);
426 } 426 }
427 write(fileno(stdout), buf, strlen(buf)); 427 write(fileno(stderr), buf, strlen(buf));
428 428
429 if (flag == -1) { 429 if (flag == -1) {
430 struct sigaction sa; 430 struct sigaction sa;
@@ -475,7 +475,7 @@ progressmeter(int flag)
475 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 475 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
476 * SUCH DAMAGE. 476 * SUCH DAMAGE.
477 * 477 *
478 * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ 478 * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $
479 */ 479 */
480 480
481 481