diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-06-04 21:19:14 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-06-04 21:19:14 +0200 |
commit | 4f170ee8f9c1d067022300df2da331c30dcda9dd (patch) | |
tree | 5734ca49661f8085638ab8255ac60448b2f61cb9 /lib/socks.c | |
parent | fba00c9f7be2dad06b8691952508882c4da14185 (diff) | |
download | curl-4f170ee8f9c1d067022300df2da331c30dcda9dd.tar.gz |
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/socks.c')
-rw-r--r-- | lib/socks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/socks.c b/lib/socks.c index bbd2b447e..82293019b 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -81,7 +81,7 @@ int Curl_blockread_all(struct connectdata *conn, /* connection data */ break; } if(Curl_socket_ready(sockfd, CURL_SOCKET_BAD, - (int)(conn_timeout - conntime)) <= 0) { + conn_timeout - conntime) <= 0) { result = ~CURLE_OK; break; } @@ -409,7 +409,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name, curlx_nonblock(sock, TRUE); /* wait until socket gets connected */ - result = Curl_socket_ready(CURL_SOCKET_BAD, sock, (int)timeout); + result = Curl_socket_ready(CURL_SOCKET_BAD, sock, timeout); if(-1 == result) { failf(conn->data, "SOCKS5: no connection here"); @@ -448,7 +448,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name, curlx_nonblock(sock, TRUE); - result = Curl_socket_ready(sock, CURL_SOCKET_BAD, (int)timeout); + result = Curl_socket_ready(sock, CURL_SOCKET_BAD, timeout); if(-1 == result) { failf(conn->data, "SOCKS5 nothing to read"); |