From a3aa3e309506ea96fa8f7546f6b22fa85263a934 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 11 Dec 2009 12:36:10 +0100 Subject: wget: check for close success; fix chunked; do not bother to send QUIT to ftp Also, random fixes to use %u for unsigned quantities. -14 bytes in wget. Signed-off-by: Denys Vlasenko --- networking/ftpgetput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/ftpgetput.c') diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index c0ecddac1..2dd7e9232 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -212,7 +212,7 @@ int ftp_receive(const char *local_path, char *server_path) } if (do_continue) { - sprintf(buf, "REST %"OFF_FMT"d", beg_range); + sprintf(buf, "REST %"OFF_FMT"u", beg_range); if (ftpcmd(buf, NULL) != 350) { do_continue = 0; } -- cgit v1.2.3