mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
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).
This commit is contained in:
parent
d47bd396ce
commit
c6fa1952a1
5 changed files with 28 additions and 28 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue