1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix a build error.

This commit is contained in:
y-iida@secom.co.jp 2012-08-21 20:46:27 +02:00 committed by Giuseppe Scrivano
parent e1df67a4f0
commit 4759cf099f
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-08-21 <y-iida@secom.co.jp> (tiny change)
* connect.c (connect_to_ip) [ENABLE_IPV6]: Attempt to use IPv6.
* http.c (gethttp): Likewise.
2012-07-03 Steven Schubiger <stsc@member.fsf.org>
* init.c: Include warc.h for warc_close in cleanup function.

View File

@ -294,8 +294,10 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
{
if (ip->family == AF_INET)
logprintf (LOG_VERBOSE, _("Connecting to %s:%d... "), txt_addr, port);
#ifdef ENABLE_IPV6
else if (ip->family == AF_INET6)
logprintf (LOG_VERBOSE, _("Connecting to [%s]:%d... "), txt_addr, port);
#endif
}
}

View File

@ -1962,11 +1962,13 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
int family = socket_family (pconn.socket, ENDPOINT_PEER);
sock = pconn.socket;
using_ssl = pconn.ssl;
#if ENABLE_IPV6
if (family == AF_INET6)
logprintf (LOG_VERBOSE, _("Reusing existing connection to [%s]:%d.\n"),
quotearg_style (escape_quoting_style, pconn.host),
pconn.port);
else
#endif
logprintf (LOG_VERBOSE, _("Reusing existing connection to %s:%d.\n"),
quotearg_style (escape_quoting_style, pconn.host),
pconn.port);