]> granicus.if.org Git - curl/commitdiff
multi: convert two timeout variables to timediff_t
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Dec 2018 11:52:21 +0000 (12:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Dec 2018 14:43:20 +0000 (15:43 +0100)
The time_t type is unsigned on some systems and these variables are used
to hold return values from functions that return timediff_t
already. timediff_t is always a signed type.

Closes #3363

lib/multi.c

index 4ba22c46ed2a7c910dd097fdbc0b0cb31e516248..56b3faf2fadabb9b277dda01cc74acfc1954dd24 100644 (file)
@@ -1354,8 +1354,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
   CURLMcode rc;
   CURLcode result = CURLE_OK;
   struct SingleRequest *k;
-  time_t timeout_ms;
-  time_t recv_timeout_ms;
+  timediff_t timeout_ms;
+  timediff_t recv_timeout_ms;
   timediff_t send_timeout_ms;
   int control;