timeouts: move ms timeouts to timediff_t from int and long

Now that all functions in select.[ch] take timediff_t instead
of the limited int or long, we can remove type conversions
and related preprocessor checks to silence compiler warnings.

Avoiding conversions from time_t was already done in 842f73de.

Based upon #5262
Supersedes #5214, #5220 and #5221
Follow up to #5343 and #5479
Closes #5490
This commit is contained in:
Marc Hoersken 2020-06-01 08:49:20 +02:00
parent e2de2d5397
commit 3186f50054
No known key found for this signature in database
GPG key ID: 61E03CBED7BC859E
5 changed files with 13 additions and 9 deletions

View file

@ -1255,7 +1255,7 @@ static CURLMcode Curl_multi_wait(struct Curl_multi *multi,
timeout */
else if((sleep_ms < 0) && extrawait)
sleep_ms = timeout_ms;
Curl_wait_ms((int)sleep_ms);
Curl_wait_ms(sleep_ms);
}
}