From 21aa32d30dbf319f2d336e0cb68d3a3235869fbb Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Fri, 18 Nov 2016 10:07:08 +0100 Subject: 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 --- lib/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/select.c') diff --git a/lib/select.c b/lib/select.c index 26302d907..03af645ee 100644 --- a/lib/select.c +++ b/lib/select.c @@ -145,7 +145,7 @@ int Curl_wait_ms(int timeout_ms) int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ curl_socket_t readfd1, curl_socket_t writefd, /* socket to write to */ - long timeout_ms) /* milliseconds to wait */ + time_t timeout_ms) /* milliseconds to wait */ { #ifdef HAVE_POLL_FINE struct pollfd pfd[3]; -- cgit v1.2.1