mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
poll: Fixed brackets.
This commit is contained in:
@@ -167,11 +167,11 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
|
|||||||
/* support for POLLHUP */
|
/* support for POLLHUP */
|
||||||
ret = recv(fds[i].fd, data, 64, MSG_PEEK);
|
ret = recv(fds[i].fd, data, 64, MSG_PEEK);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (ret == -1) &&
|
if ((ret == -1) &&
|
||||||
(errno == WSAESHUTDOWN || errno == WSAECONNRESET ||
|
(errno == WSAESHUTDOWN || errno == WSAECONNRESET ||
|
||||||
errno == WSAECONNABORTED || errno == WSAENETRESET)) {
|
errno == WSAECONNABORTED || errno == WSAENETRESET)) {
|
||||||
#else
|
#else
|
||||||
if (ret == -1) &&
|
if ((ret == -1) &&
|
||||||
(errno == ESHUTDOWN || errno == ECONNRESET ||
|
(errno == ESHUTDOWN || errno == ECONNRESET ||
|
||||||
errno == ECONNABORTED || errno == ENETRESET)) {
|
errno == ECONNABORTED || errno == ENETRESET)) {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user