]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
unit2600: make sure numerical curl_easy_setopt sets long
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Feb 2023 08:52:33 +0000 (09:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Feb 2023 16:26:18 +0000 (17:26 +0100)
Follow-up to 671158242db3203

Reported-by: Marcel Raad
Fixes #10410
Closes #10419

tests/unit/unit2600.c

index 534d1ea484269e584245773b49dc6d776427800e..ad5dbb9d1542f4f84768dc70c57debedb1562eb0 100644 (file)
@@ -270,8 +270,10 @@ static void test_connect(struct test_case *tc)
   list = curl_slist_append(NULL, tc->resolve_info);
   fail_unless(list, "error allocating resolve list entry");
   curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
-  curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS, tc->connect_timeout_ms);
-  curl_easy_setopt(easy, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, tc->he_timeout_ms);
+  curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS,
+                   (long)tc->connect_timeout_ms);
+  curl_easy_setopt(easy, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS,
+                   (long)tc->he_timeout_ms);
 
   curl_easy_setopt(easy, CURLOPT_URL, tc->url);
   memset(&tr, 0, sizeof(tr));