]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: remove 'status' from struct Curl_async
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Feb 2025 21:05:10 +0000 (22:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 16 Feb 2025 13:35:33 +0000 (14:35 +0100)
While it gets stored, nothing needs nor uses it.

Closes #16347

lib/asyn-ares.c
lib/asyn-thread.c
lib/hostasyn.c
lib/urldata.h

index 6caba3ceba8d9c3ee511f240539cc6d3daff3bb9..50f3bc74188365017b8bb5cd53650bdfa2d7a911 100644 (file)
@@ -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 */
index f5a533b34b26cddd339e2d7eef01de228d1f732a..12a2e5e7db6ba6d3bc1f321e40b3b6efa6861ada 100644 (file)
@@ -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();
index 4d6a8e85967f700623e1282641255b7e6dedbb58..effdf8e9e250ad2f8e8c431c90cbaf46860f3e39 100644 (file)
@@ -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)
index 58b9d7983ae8fcd0b178b2134adb050b975ac444..6744129fa66bf9d697c8b75710840c28e3077e07 100644 (file)
@@ -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 */
 };