diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-07-28 15:49:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-07-28 15:51:25 +0200 |
commit | 4dee50b9c80f9b18d2eb9a1c20bd879abb342302 (patch) | |
tree | 7a9c5ddd299e23ad27c7efa6a8759ae3122f31c9 /lib/url.c | |
parent | 7551e55d6614cddb039602e08f3d7aa302299617 (diff) | |
download | curl-4dee50b9c80f9b18d2eb9a1c20bd879abb342302.tar.gz |
timeval: struct curltime is a struct timeval replacement
... to make all libcurl internals able to use the same data types for
the struct members. The timeval struct differs subtly on several
platforms so it makes it cumbersome to use everywhere.
Ref: #1652
Closes #1693
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3275,7 +3275,7 @@ Curl_oldest_idle_connection(struct Curl_easy *data) struct curl_hash_element *he; time_t highscore=-1; time_t score; - struct timeval now; + struct curltime now; struct connectdata *conn_candidate = NULL; struct connectbundle *bundle; @@ -3338,7 +3338,7 @@ find_oldest_idle_connection_in_bundle(struct Curl_easy *data, struct curl_llist_element *curr; time_t highscore=-1; time_t score; - struct timeval now; + struct curltime now; struct connectdata *conn_candidate = NULL; struct connectdata *conn; @@ -3426,7 +3426,7 @@ static int call_disconnect_if_dead(struct connectdata *conn, */ static void prune_dead_connections(struct Curl_easy *data) { - struct timeval now = Curl_tvnow(); + struct curltime now = Curl_tvnow(); time_t elapsed = Curl_tvdiff(now, data->state.conn_cache->last_cleanup); if(elapsed >= 1000L) { |