summaryrefslogtreecommitdiffstats
path: root/lib/select.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2018-01-23 21:49:00 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-24 19:14:23 (GMT)
commitaf9e654045f11028e50dac4781e297834129a749 (patch)
tree028fac729d317112e5790204712f4b4c7985a0de /lib/select.c
parentde7c21d677db1ddaeece03c19e13e448f4031511 (diff)
downloadCMake-af9e654045f11028e50dac4781e297834129a749.zip
CMake-af9e654045f11028e50dac4781e297834129a749.tar.gz
CMake-af9e654045f11028e50dac4781e297834129a749.tar.bz2
curl 2018-01-23 (d6c21c8e)
Code extracted from: https://github.com/curl/curl.git at commit d6c21c8eec597a925d2b647cff3d58ac69de01a0 (curl-7_58_0).
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/select.c b/lib/select.c
index f6fecaf..28390a4 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -51,7 +51,7 @@
#include "warnless.h"
/* Convenience local macros */
-#define ELAPSED_MS() (int)curlx_tvdiff(curlx_tvnow(), initial_tv)
+#define ELAPSED_MS() (int)Curl_timediff(Curl_now(), initial_tv)
int Curl_ack_eintr = 0;
#define ERROR_NOT_EINTR(error) (Curl_ack_eintr || error != EINTR)
@@ -96,7 +96,7 @@ int Curl_wait_ms(int timeout_ms)
Sleep(timeout_ms);
#else
pending_ms = timeout_ms;
- initial_tv = curlx_tvnow();
+ initial_tv = Curl_now();
do {
#if defined(HAVE_POLL_FINE)
r = poll(NULL, 0, pending_ms);
@@ -177,14 +177,14 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */
return r;
}
- /* Avoid initial timestamp, avoid curlx_tvnow() call, when elapsed
+ /* Avoid initial timestamp, avoid Curl_now() call, when elapsed
time in this function does not need to be measured. This happens
when function is called with a zero timeout or a negative timeout
value indicating a blocking call should be performed. */
if(timeout_ms > 0) {
pending_ms = (int)timeout_ms;
- initial_tv = curlx_tvnow();
+ initial_tv = Curl_now();
}
#ifdef HAVE_POLL_FINE
@@ -418,14 +418,14 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
return r;
}
- /* Avoid initial timestamp, avoid curlx_tvnow() call, when elapsed
+ /* Avoid initial timestamp, avoid Curl_now() call, when elapsed
time in this function does not need to be measured. This happens
when function is called with a zero timeout or a negative timeout
value indicating a blocking call should be performed. */
if(timeout_ms > 0) {
pending_ms = timeout_ms;
- initial_tv = curlx_tvnow();
+ initial_tv = Curl_now();
}
#ifdef HAVE_POLL_FINE