Curl_select's timeout arg is an int
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 Nov 2004 13:28:44 +0000 (13:28 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 Nov 2004 13:28:44 +0000 (13:28 +0000)
lib/connect.c
lib/ssluse.c

index b8e1e71..e982ddf 100644 (file)
@@ -212,7 +212,7 @@ int waitconnect(curl_socket_t sockfd, /* socket */
 #endif
 
   /* now select() until we get connect or timeout */
-  rc = Curl_select(CURL_SOCKET_BAD, sockfd, timeout_msec);
+  rc = Curl_select(CURL_SOCKET_BAD, sockfd, (int)timeout_msec);
   if(-1 == rc)
     /* error, no connect here, try next */
     return WAITCONN_SELECT_ERROR;
index 1afcb8e..8b24862 100644 (file)
@@ -1374,7 +1374,7 @@ Curl_SSLConnect(struct connectdata *conn,
       break;
 
     while(1) {
-      what = Curl_select(readfd, writefd, timeout_ms);
+      what = Curl_select(readfd, writefd, (int)timeout_ms);
       if(what > 0)
         /* reabable or writable, go loop in the outer loop */
         break;