diff options
author | Marcel Raad <raad@teamviewer.com> | 2016-11-18 10:07:08 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-18 10:11:55 +0100 |
commit | 21aa32d30dbf319f2d336e0cb68d3a3235869fbb (patch) | |
tree | f8dc171c75e56b4b96254c87c60a37cd2f34273f /lib/asyn-thread.c | |
parent | 0b8d682f81ee9acb763dd4c9ad805fe08d1227c0 (diff) | |
download | curl-21aa32d30dbf319f2d336e0cb68d3a3235869fbb.tar.gz |
lib: fix compiler warnings after de4de4e3c7c
Visual C++ now complains about implicitly casting time_t (64-bit) to
long (32-bit). Fix this by changing some variables from long to time_t,
or explicitly casting to long where the public interface would be
affected.
Closes #1131
Diffstat (limited to 'lib/asyn-thread.c')
-rw-r--r-- | lib/asyn-thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 7cce01aac..0c5abaefe 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -169,7 +169,7 @@ struct thread_sync_data { struct thread_data { curl_thread_t thread_hnd; unsigned int poll_interval; - long interval_end; + time_t interval_end; struct thread_sync_data tsd; }; @@ -525,7 +525,7 @@ CURLcode Curl_resolver_is_resolved(struct connectdata *conn, } else { /* poll for name lookup done with exponential backoff up to 250ms */ - long elapsed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle); + time_t elapsed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle); if(elapsed < 0) elapsed = 0; |