diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-09-06 00:02:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-06 00:02:54 +0200 |
commit | c6fa1952a14ba2fa14f4a3483f1f573560ef3133 (patch) | |
tree | 08c88f75e74eb8e8f969234000579e25e76584f2 /lib/url.c | |
parent | d47bd396cecd755c5f88d1e0c7b82a81bca8bd83 (diff) |
portabilty: use proper variable type to hold sockets
Curl_getconnectinfo() is changed to return a proper curl_socket_t for
the last socket so that it'll work more portably (and cause less
compiler warnings).
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2698,11 +2698,10 @@ static bool RTSPConnIsDead(struct connectdata *check) } else if (sval & CURL_CSELECT_IN) { /* readable with no error. could be closed or could be alive */ - long connectinfo = 0; - Curl_getconnectinfo(check->data, &connectinfo, &check); - if(connectinfo != -1) { + curl_socket_t connectinfo = + Curl_getconnectinfo(check->data, &check); + if(connectinfo != CURL_SOCKET_BAD) ret_val = FALSE; - } } return ret_val; |