From: Daniel Stenberg Date: Thu, 6 Feb 2025 21:05:10 +0000 (+0100) Subject: asyn-thread: remove 'status' from struct Curl_async X-Git-Tag: curl-8_13_0~461 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ee06e873cf555ee802a4d3c5356f8eccccdaf10;p=thirdparty%2Fcurl.git asyn-thread: remove 'status' from struct Curl_async While it gets stored, nothing needs nor uses it. Closes #16347 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 6caba3ceba..50f3bc7418 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -782,7 +782,6 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data, data->state.async.hostname = res->hostname; data->state.async.port = port; data->state.async.done = FALSE; /* not done */ - data->state.async.status = 0; /* clear */ data->state.async.dns = NULL; /* clear */ /* initial status - failed */ diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index f5a533b34b..12a2e5e7db 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -437,7 +437,6 @@ static bool init_resolve_thread(struct Curl_easy *data, async->port = port; async->done = FALSE; - async->status = 0; async->dns = NULL; td->thread_hnd = curl_thread_t_null; td->start = Curl_now(); diff --git a/lib/hostasyn.c b/lib/hostasyn.c index 4d6a8e8596..effdf8e9e2 100644 --- a/lib/hostasyn.c +++ b/lib/hostasyn.c @@ -70,8 +70,6 @@ CURLcode Curl_addrinfo_callback(struct Curl_easy *data, struct Curl_dns_entry *dns = NULL; CURLcode result = CURLE_OK; - data->state.async.status = status; - if(CURL_ASYNC_SUCCESS == status) { if(ai) { if(data->share) diff --git a/lib/urldata.h b/lib/urldata.h index 58b9d7983a..6744129fa6 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -574,7 +574,6 @@ struct Curl_async { void *resolver; /* resolver state, if it is used in the URL state - ares_channel e.g. */ int port; - int status; /* if done is TRUE, this is the status from the callback */ BIT(done); /* set TRUE when the lookup is complete */ };