diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-10-26 15:24:50 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-10-28 10:40:51 +0200 |
commit | 0d85eed3dfbbce18303900385d17f84d939cef00 (patch) | |
tree | e86f91d28fd31de4cc625fc1db9e2650f5feef11 /lib/multi.c | |
parent | 9dfc541dd7d11870d51b69c93083b805de30239f (diff) | |
download | curl-0d85eed3dfbbce18303900385d17f84d939cef00.tar.gz |
Curl_timeleft: change return type to timediff_t
returning 'time_t' is problematic when that type is unsigned and we
return values less than zero to signal "already expired", used in
several places in the code.
Closes #2021
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index 658a18b15..262f192ca 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1318,7 +1318,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, struct SingleRequest *k; time_t timeout_ms; time_t recv_timeout_ms; - time_t send_timeout_ms; + timediff_t send_timeout_ms; int control; if(!GOOD_EASY_HANDLE(data)) |