tidy-up: replace (0 == expressions

This commit is contained in:
Viktor Szakats 2025-07-09 19:58:33 +02:00
parent 2530adcf4d
commit bc72ca01e9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
17 changed files with 23 additions and 23 deletions

View file

@ -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;