From 6b1220b61d5ed2481dbf31714a68be6ef6eed3da Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 26 Apr 2005 13:08:49 +0000 Subject: Cory Nelson's work on nuking compiler warnings when building on x64 with VS2005. --- lib/select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/select.c') diff --git a/lib/select.c b/lib/select.c index 59aec52bd..634f8efda 100644 --- a/lib/select.c +++ b/lib/select.c @@ -151,7 +151,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) } do { - r = select(maxfd + 1, &fds_read, &fds_write, &fds_err, &timeout); + r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, &timeout); } while((r == -1) && (Curl_ourerrno() == EINTR)); if (r < 0) @@ -236,7 +236,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) } do { - r = select(maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout); + r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout); } while((r == -1) && (Curl_ourerrno() == EINTR)); if (r < 0) -- cgit v1.2.3