aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-04 21:19:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-04 21:19:14 +0200
commit4f170ee8f9c1d067022300df2da331c30dcda9dd (patch)
tree5734ca49661f8085638ab8255ac60448b2f61cb9 /lib/connect.c
parentfba00c9f7be2dad06b8691952508882c4da14185 (diff)
Curl_socket_ready: make timeout a 'long'
It was mostly typecasted to int all over the code so switching to long instead all over should be a net gain.
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 369ba053e..6d657eb5e 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -211,8 +211,8 @@ int waitconnect(struct connectdata *conn,
for(;;) {
/* now select() until we get connect or timeout */
- rc = Curl_socket_ready(CURL_SOCKET_BAD, sockfd, (int)(timeout_msec>1000?
- 1000:timeout_msec));
+ rc = Curl_socket_ready(CURL_SOCKET_BAD, sockfd, timeout_msec>1000?
+ 1000:timeout_msec);
if(Curl_pgrsUpdate(conn))
return WAITCONN_ABORTED;