]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thrdd: fix no `HAVE_GETADDRINFO` builds
authorViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 21:55:47 +0000 (23:55 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 22:16:06 +0000 (00:16 +0200)
mingw32ce, CM 4.4.0-arm schannel:
```
lib/asyn-thrdd.c: In function 'gethostbyname_thread':
lib/asyn-thrdd.c:349: error: too many arguments to function 'async_thrd_cleanup'
```
Ref: https://github.com/curl/curl/actions/runs/17158865566/job/48682687295?pr=18039#step:9:21

Follow-up to 88fc6c491f043ed184ea2cf1a17b651427fbbbf5 #18263
Closes #18371

lib/asyn-thrdd.c

index f82eb29ba897c04c4abb90f691a14d07647a0a43..4f657b4a4b222027907796ef8ba2b6f5b579faf7 100644 (file)
@@ -346,7 +346,7 @@ static CURL_THREAD_RETURN_T CURL_STDCALL gethostbyname_thread(void *arg)
 #pragma clang diagnostic pop
 #endif
 
-  async_thrd_cleanup(addr_ctx, 0);
+  async_thrd_cleanup(addr_ctx);
   return 0;
 }