aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 12:01:27 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 12:01:27 +0200
commit7ecec3eb94de18e339fe3d073388f9e4d1521389 (patch)
treee5d7e3c9288ec5a8bd7bfb031ebbbb040daa28bc
parentf4facc4e10e0a9e7e6c4564d8f0ef903a15af770 (diff)
downloadlibssh-7ecec3eb94de18e339fe3d073388f9e4d1521389.tar.gz
libssh-7ecec3eb94de18e339fe3d073388f9e4d1521389.tar.xz
libssh-7ecec3eb94de18e339fe3d073388f9e4d1521389.zip
poll: Fixed brackets.
-rw-r--r--libssh/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/poll.c b/libssh/poll.c
index 68e3c41c..5ad12ca0 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -192,11 +192,11 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
/* support for POLLHUP */
ret = recv(fds[i].fd, data, 64, MSG_PEEK);
#ifdef _WIN32
- if (ret == -1) &&
+ if ((ret == -1) &&
(errno == WSAESHUTDOWN || errno == WSAECONNRESET ||
errno == WSAECONNABORTED || errno == WSAENETRESET)) {
#else
- if (ret == -1) &&
+ if ((ret == -1) &&
(errno == ESHUTDOWN || errno == ECONNRESET ||
errno == ECONNABORTED || errno == ENETRESET)) {
#endif