summaryrefslogtreecommitdiff
path: root/lib/asyn-ares.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-28 10:40:51 +0200
commit0d85eed3dfbbce18303900385d17f84d939cef00 (patch)
treee86f91d28fd31de4cc625fc1db9e2650f5feef11 /lib/asyn-ares.c
parent9dfc541dd7d11870d51b69c93083b805de30239f (diff)
downloadcurl-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/asyn-ares.c')
-rw-r--r--lib/asyn-ares.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c
index dd7dc4028..38ede999c 100644
--- a/lib/asyn-ares.c
+++ b/lib/asyn-ares.c
@@ -354,7 +354,7 @@ CURLcode Curl_resolver_wait_resolv(struct connectdata *conn,
{
CURLcode result = CURLE_OK;
struct Curl_easy *data = conn->data;
- long timeout;
+ timediff_t timeout;
struct curltime now = Curl_now();
struct Curl_dns_entry *temp_entry;