]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1557: pass `long` type to `multi_setopt()`
authorViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 11:45:06 +0000 (13:45 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 12:16:45 +0000 (14:16 +0200)
A wrong type here has seen to manifest in CI failures with gcc-12 macOS.

Ref: https://github.com/curl/curl/pull/18348#issuecomment-3213881790
Ref: https://github.com/curl/curl/actions/runs/17153761944/job/48665734013?pr=18349

Follow-up to b63cce7fee30648e29a0453202f7ba05a01de79c #18339
Follow-up to 88fc6c491f043ed184ea2cf1a17b651427fbbbf5 #18263

Closes #18355

tests/libtest/lib1557.c

index 2381c07b6a19d757b6222115fbdd425ff5ce5995..0e33f48fbb17d6198338349324855b94c723baa4 100644 (file)
@@ -36,7 +36,7 @@ static CURLcode test_lib1557(const char *URL)
   global_init(CURL_GLOBAL_ALL);
 
   multi_init(curlm);
-  multi_setopt(curlm, CURLMOPT_MAX_HOST_CONNECTIONS, 1);
+  multi_setopt(curlm, CURLMOPT_MAX_HOST_CONNECTIONS, 1L);
 
   easy_init(curl1);
   easy_setopt(curl1, CURLOPT_URL, URL);