summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-10-26 15:24:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-10-27 23:40:54 +0200
commit6c53e294d71c637eef85a4e8b1fa504d3cd762ed (patch)
treee86f91d28fd31de4cc625fc1db9e2650f5feef11 /lib/url.c
parent9dfc541dd7d11870d51b69c93083b805de30239f (diff)
downloadcurl-bagder/timeleft-timediff_t.tar.gz
Curl_timeleft: change return type to timediff_tbagder/timeleft-timediff_t
returning 'time_t' was problematic when that type is unsigned and we check values less than zero to detect "already expired" on several places in the code.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 03ee0855a..5a11e423b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -6323,7 +6323,7 @@ static CURLcode resolve_server(struct Curl_easy *data,
bool *async)
{
CURLcode result = CURLE_OK;
- time_t timeout_ms = Curl_timeleft(data, NULL, TRUE);
+ timediff_t timeout_ms = Curl_timeleft(data, NULL, TRUE);
/*************************************************************
* Resolve the name of the server or proxy