diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2024-09-26 16:27:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-09-26 16:27:10 +0200 |
commit | a667a7f02066ce1a6de568d75f1062f525b3c2f0 (patch) | |
tree | b1758c9387e797f5ec4f7758f9bae0c8d02bde95 | |
parent | 371fe9f71d445d18be28c82a2a6d82115c8af19d (diff) | |
download | busybox-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>
-rw-r--r-- | networking/wget.c | 9 | ||||
-rw-r--r-- | util-linux/hwclock.c | 2 |
2 files changed, 7 insertions, 4 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 | ||
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index e6f0043d0..c3fd0eb57 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -366,7 +366,7 @@ static void set_rtc_param(const char **pp_rtcname, char *rtc_param) | |||
366 | /* handle param name */ | 366 | /* handle param name */ |
367 | eq = strchr(rtc_param, '='); | 367 | eq = strchr(rtc_param, '='); |
368 | if (!eq) | 368 | if (!eq) |
369 | bb_error_msg_and_die("expected <param>=<value>"); | 369 | bb_simple_error_msg_and_die("expected <param>=<value>"); |
370 | *eq = '\0'; | 370 | *eq = '\0'; |
371 | param.param = resolve_rtc_param_alias(rtc_param); | 371 | param.param = resolve_rtc_param_alias(rtc_param); |
372 | *eq = '='; | 372 | *eq = '='; |