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/easy.c | |
parent | 7551e55d6614cddb039602e08f3d7aa302299617 (diff) |
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/easy.c')
-rw-r--r-- | lib/easy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/easy.c b/lib/easy.c index 2b1ce9e8a..33ae90fd5 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -572,8 +572,8 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev) int numfds=0; int pollrc; int i; - struct timeval before; - struct timeval after; + struct curltime before; + struct curltime after; /* populate the fds[] array */ for(m = ev->list, f=&fds[0]; m; m = m->next) { @@ -670,7 +670,7 @@ static CURLcode easy_transfer(struct Curl_multi *multi) bool done = FALSE; CURLMcode mcode = CURLM_OK; CURLcode result = CURLE_OK; - struct timeval before; + struct curltime before; int without_fds = 0; /* count number of consecutive returns from curl_multi_wait() without any filedescriptors */ @@ -683,7 +683,7 @@ static CURLcode easy_transfer(struct Curl_multi *multi) if(!mcode) { if(!rc) { - struct timeval after = curlx_tvnow(); + struct curltime after = curlx_tvnow(); /* If it returns without any filedescriptor instantly, we need to avoid busy-looping during periods where it has nothing particular |