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:02:06 +0200
commitaeb9f3e3895ed3039bcde02cd862e38aa1e369e0 (patch)
treebe586e7b3baa7eddae5bcd681ee088c4acbc6db1
parentd3a4e01137f0930ad1d0301c9f94dca23026b474 (diff)
downloadlibssh-aeb9f3e3895ed3039bcde02cd862e38aa1e369e0.tar.gz
libssh-aeb9f3e3895ed3039bcde02cd862e38aa1e369e0.tar.xz
libssh-aeb9f3e3895ed3039bcde02cd862e38aa1e369e0.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 6221e90c..cac4c4d6 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -167,11 +167,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