From 3186f5005497df68ef0735b2e23b8a5c9d76d8b9 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Mon, 1 Jun 2020 08:49:20 +0200 Subject: 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 --- lib/easy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/easy.c') 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(); -- cgit v1.2.1