]> granicus.if.org Git - curl/commitdiff
wait_ms: takes an int argument
authorDaniel Stenberg <daniel@haxx.se>
Sun, 5 Jun 2011 10:06:50 +0000 (12:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 5 Jun 2011 10:06:50 +0000 (12:06 +0200)
Typecasts added since I changed more code to use long for timeouts

lib/select.c

index 35053938435418ebbef7d21b0cdbc7401cf48780..ab491c3ce3d131366ce19c064b76212da6a65b21 100644 (file)
@@ -180,7 +180,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
   int ret;
 
   if((readfd == CURL_SOCKET_BAD) && (writefd == CURL_SOCKET_BAD)) {
-    r = wait_ms(timeout_ms);
+    r = wait_ms((int)timeout_ms);
     return r;
   }
 
@@ -364,7 +364,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
     }
   }
   if(fds_none) {
-    r = wait_ms(timeout_ms);
+    r = wait_ms((int)timeout_ms);
     return r;
   }