aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2024-09-26 16:27:10 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2024-09-26 16:27:10 +0200
commita667a7f02066ce1a6de568d75f1062f525b3c2f0 (patch)
treeb1758c9387e797f5ec4f7758f9bae0c8d02bde95 /networking
parent371fe9f71d445d18be28c82a2a6d82115c8af19d (diff)
downloadbusybox-w32-a667a7f02066ce1a6de568d75f1062f525b3c2f0.tar.gz
busybox-w32-a667a7f02066ce1a6de568d75f1062f525b3c2f0.tar.bz2
busybox-w32-a667a7f02066ce1a6de568d75f1062f525b3c2f0.zip
wget: fix compile warnings when WGET_FTP is not selected
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 512bebfc2..ec3767793 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -1178,7 +1178,9 @@ static void download_one_url(const char *url)
1178 /*G.content_len = 0; - redundant, got_clen = 0 is enough */ 1178 /*G.content_len = 0; - redundant, got_clen = 0 is enough */
1179 G.got_clen = 0; 1179 G.got_clen = 0;
1180 G.chunked = 0; 1180 G.chunked = 0;
1181 if (use_proxy || target.protocol[0] != 'f' /*not ftp[s]*/) { 1181 if (!ENABLE_FEATURE_WGET_FTP
1182 || use_proxy || target.protocol[0] != 'f' /*not ftp[s]*/
1183 ) {
1182 /* 1184 /*
1183 * HTTP session 1185 * HTTP session
1184 */ 1186 */
@@ -1447,14 +1449,15 @@ However, in real world it was observed that some web servers
1447 1449
1448 /* For HTTP, data is pumped over the same connection */ 1450 /* For HTTP, data is pumped over the same connection */
1449 dfp = sfp; 1451 dfp = sfp;
1450 } else { 1452 }
1451#if ENABLE_FEATURE_WGET_FTP 1453#if ENABLE_FEATURE_WGET_FTP
1454 else {
1452 /* 1455 /*
1453 * FTP session 1456 * FTP session
1454 */ 1457 */
1455 sfp = prepare_ftp_session(&dfp, &target, lsa); 1458 sfp = prepare_ftp_session(&dfp, &target, lsa);
1456#endif
1457 } 1459 }
1460#endif
1458 1461
1459 free(lsa); 1462 free(lsa);
1460 1463