asyn-thrdd: minor without-IPv6 fixes

Pointed out by Copilot

Closes #21413
This commit is contained in:
Daniel Stenberg 2026-04-22 15:05:57 +02:00
parent 37ab2469c1
commit 0f2b020c03
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -384,7 +384,7 @@ static void async_thrdd_item_process(void *arg)
#else /* HAVE_GETADDRINFO */
/* Process the item, using Curl_ipv4_resolve_r() */
static void async_thrdd_item_process(void *item)
static void async_thrdd_item_process(void *arg)
{
struct async_thrdd_item *item = arg;
@ -612,7 +612,7 @@ CURLcode Curl_async_getaddrinfo(struct Curl_easy *data,
if(result)
return result;
#ifdef CURL_IPRESOLVE_V6
#ifdef CURLRES_IPV6
/* Do not start an AAAA query for an ipv4 address when
* we will start an A query for it. */
if((async->dns_queries & CURL_DNSQ_AAAA) &&