mirror of
https://github.com/curl/curl.git
synced 2026-07-28 09:53:06 +03:00
tidy-up: replace (0 == expressions
This commit is contained in:
parent
2530adcf4d
commit
bc72ca01e9
17 changed files with 23 additions and 23 deletions
|
|
@ -1324,7 +1324,7 @@ static curl_socket_t connect_to(const char *ipaddr, unsigned short port)
|
|||
if(getsockopt(serverfd, SOL_SOCKET, SO_ERROR,
|
||||
(void *)&error, &errSize))
|
||||
error = SOCKERRNO;
|
||||
if((0 == error) || (SOCKEISCONN == error))
|
||||
if((error == 0) || (SOCKEISCONN == error))
|
||||
goto success;
|
||||
else if((error != SOCKEINPROGRESS) && (error != SOCKEWOULDBLOCK))
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue