diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-06-01 08:49:20 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-06-06 20:05:58 +0200 |
commit | 3186f5005497df68ef0735b2e23b8a5c9d76d8b9 (patch) | |
tree | 6b75126d0db7d338d5e4792a1bc03f4124c051d2 /lib/easy.c | |
parent | e2de2d53979ac6d93303562f5531f75944e70b8b (diff) | |
download | curl-3186f5005497df68ef0735b2e23b8a5c9d76d8b9.tar.gz |
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
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index f58c4521a..292cca7f6 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -510,7 +510,7 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev) before = Curl_now(); /* wait for activity or timeout */ - pollrc = Curl_poll(fds, numfds, (int)ev->ms); + pollrc = Curl_poll(fds, numfds, ev->ms); after = Curl_now(); |