diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-14 16:28:29 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-15 00:08:00 +0200 |
commit | d68fc029721920a4bac4c75b3c5a8e370e86eddf (patch) | |
tree | 20c5e190f3cd0f2e14cd3cfdd673c3e35c1ae0bf | |
parent | 974461443466bd334727a8c03ff41905ebaa4516 (diff) | |
download | curl-d68fc029721920a4bac4c75b3c5a8e370e86eddf.tar.gz |
asyn-ares: correct some bad comments
Closes #5812
-rw-r--r-- | lib/asyn-ares.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index ba5160b25..e65150744 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -633,7 +633,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, *waitp = 0; /* default to synchronous response */ -#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */ +#ifdef ENABLE_IPV6 switch(conn->ip_version) { default: #if ARES_VERSION >= 0x010601 @@ -649,7 +649,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, family = PF_INET6; break; } -#endif /* CURLRES_IPV6 */ +#endif /* ENABLE_IPV6 */ bufp = strdup(hostname); if(bufp) { @@ -670,7 +670,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, /* initial status - failed */ res->last_status = ARES_ENOTFOUND; -#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */ +#ifdef ENABLE_IPV6 if(family == PF_UNSPEC) { if(Curl_ipv6works(conn)) { res->num_pending = 2; @@ -690,7 +690,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, } } else -#endif /* CURLRES_IPV6 */ +#endif /* ENABLE_IPV6 */ { res->num_pending = 1; |