aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-21 15:41:18 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-21 15:41:58 +0200
commit23e6b36209fd899161fdac4e365d545ecac8aa2f (patch)
treee1d39359d561443bb71e7b8786523baa787b98e6
parent541b38b772785db0c405c2697babacb2a95cfdfa (diff)
downloadlibssh-23e6b36209fd899161fdac4e365d545ecac8aa2f.tar.gz
libssh-23e6b36209fd899161fdac4e365d545ecac8aa2f.tar.xz
libssh-23e6b36209fd899161fdac4e365d545ecac8aa2f.zip
poll: Fixed a typo.
-rw-r--r--libssh/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/poll.c b/libssh/poll.c
index c50f2ab3..50ce0062 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -110,7 +110,7 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
FD_ZERO (&exceptfds);
/* compute fd_sets and find largest descriptor */
- for (rc = -1; max_fd = 0, i = 0; i < nfds; i++) {
+ for (rc = -1, max_fd = 0, i = 0; i < nfds; i++) {
if (fds[i].fd == SSH_INVALID_SOCKET) {
continue;
}