aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-21 07:29:03 +0000
committerYang Tse <yangsita@gmail.com>2007-03-21 07:29:03 +0000
commit842be6c52f1562c2b78380c790217ad2a9c6a987 (patch)
tree07db85600107012dad268d1b3fb0713a3bc89771
parente4b754f64ed02ce85f6deb13908c833cd3b32231 (diff)
fix compiler warning: implicit conversion from "long" to "int"
-rw-r--r--lib/select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/select.c b/lib/select.c
index 1b0e8643a..597293c19 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -172,7 +172,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
(SOCKERRNO != EINTR) &&
#endif
((timeout_ms < 0) ||
- ((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
+ ((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
if (r < 0)
return -1;
@@ -239,7 +239,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
(SOCKERRNO != EINTR) &&
#endif
((timeout_ms < 0) ||
- ((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
+ ((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
if (r < 0)
return -1;
@@ -325,7 +325,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
(SOCKERRNO != EINTR) &&
#endif
((timeout_ms < 0) ||
- ((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
+ ((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
#else /* HAVE_POLL_FINE */
@@ -364,7 +364,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
(SOCKERRNO != EINTR) &&
#endif
((timeout_ms < 0) ||
- ((pending_ms = timeout_ms - curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
+ ((pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv)) > 0)));
if (r < 0)
return -1;