mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
tidy-up: make conditional checks more consistent
... remove '== NULL' and '!= 0' Closes #6912
This commit is contained in:
parent
19ea52da4d
commit
063d3f3b96
85 changed files with 282 additions and 283 deletions
|
|
@ -1289,7 +1289,7 @@ static CURLMcode multi_wait(struct Curl_multi *multi,
|
|||
mask |= CURL_WAIT_POLLOUT;
|
||||
if(wsa_events.lNetworkEvents & FD_OOB)
|
||||
mask |= CURL_WAIT_POLLPRI;
|
||||
if(ret && pollrc <= 0 && wsa_events.lNetworkEvents != 0)
|
||||
if(ret && pollrc <= 0 && wsa_events.lNetworkEvents)
|
||||
retcode++;
|
||||
}
|
||||
WSAEventSelect(extra_fds[i].fd, multi->wsa_event, 0);
|
||||
|
|
@ -1317,7 +1317,7 @@ static CURLMcode multi_wait(struct Curl_multi *multi,
|
|||
if(bitmap & (GETSOCK_READSOCK(i) | GETSOCK_WRITESOCK(i))) {
|
||||
wsa_events.lNetworkEvents = 0;
|
||||
if(WSAEnumNetworkEvents(sockbunch[i], NULL, &wsa_events) == 0) {
|
||||
if(ret && pollrc <= 0 && wsa_events.lNetworkEvents != 0)
|
||||
if(ret && pollrc <= 0 && wsa_events.lNetworkEvents)
|
||||
retcode++;
|
||||
}
|
||||
WSAEventSelect(sockbunch[i], multi->wsa_event, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue