mirror of
https://github.com/mirror/wget.git
synced 2025-03-10 09:40:17 +08:00
Fix compiler warnings
This commit is contained in:
parent
226785838a
commit
97787110a2
@ -1,3 +1,9 @@
|
|||||||
|
2014-03-26 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
|
* ftp.c (getftp): Rearrange parameters to fix compiler warning
|
||||||
|
* utils.c (get_dir_matches_p): Do not pass a const char** to a function that
|
||||||
|
expects char**
|
||||||
|
|
||||||
2014-03-25 Daniel Stenberg <daniel@haxx.se>
|
2014-03-25 Daniel Stenberg <daniel@haxx.se>
|
||||||
|
|
||||||
* url.c (shorten_length): Remove unused function.
|
* url.c (shorten_length): Remove unused function.
|
||||||
|
@ -802,8 +802,12 @@ Error in server response, closing control connection.\n"));
|
|||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
if (!opt.server_response)
|
if (!opt.server_response)
|
||||||
logprintf (LOG_VERBOSE, expected_bytes ? "%s\n" : _("done.\n"),
|
{
|
||||||
number_to_static_string (expected_bytes));
|
logprintf (LOG_VERBOSE, "%s\n",
|
||||||
|
expected_bytes ?
|
||||||
|
number_to_static_string (expected_bytes) :
|
||||||
|
_("done.\n"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd & DO_RETR && restval > 0 && restval == expected_bytes)
|
if (cmd & DO_RETR && restval > 0 && restval == expected_bytes)
|
||||||
|
@ -2509,7 +2509,7 @@ const char *
|
|||||||
test_dir_matches_p()
|
test_dir_matches_p()
|
||||||
{
|
{
|
||||||
static struct {
|
static struct {
|
||||||
const char *dirlist[3];
|
char *dirlist[3];
|
||||||
const char *dir;
|
const char *dir;
|
||||||
bool result;
|
bool result;
|
||||||
} test_array[] = {
|
} test_array[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user