aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-12 20:54:42 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-12 21:01:18 +0200
commit46b249f5ce552bba2e0a170cb0b8052b1419924b (patch)
tree52c9b7340e92c8663efc46044a7271f1e2809d7a /libssh
parentb1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28 (diff)
downloadlibssh-46b249f5ce552bba2e0a170cb0b8052b1419924b.tar.gz
libssh-46b249f5ce552bba2e0a170cb0b8052b1419924b.tar.xz
libssh-46b249f5ce552bba2e0a170cb0b8052b1419924b.zip
connect: Fixed signedness warnings from MSVC.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/connect.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libssh/connect.c b/libssh/connect.c
index 98038f0f..57085d16 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -480,6 +480,7 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
fd_set *readfds, struct timeval *timeout) {
struct timeval zerotime;
fd_set localset, localset2;
+ socket_t f;
int rep;
int set;
int i;
@@ -520,8 +521,8 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
/* Look into the localset for active fd */
set = 0;
- for (i = 0; (i < maxfd) && !set; i++) {
- if (FD_ISSET(i, &localset)) {
+ for (f = 0; (f < maxfd) && !set; f++) {
+ if (FD_ISSET(f, &localset)) {
set = 1;
}
}
@@ -583,9 +584,9 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
outchannels[j] = NULL;
FD_ZERO(&localset2);
- for (i = 0; i < maxfd; i++) {
- if (FD_ISSET(i, readfds) && FD_ISSET(i, &localset)) {
- FD_SET(i, &localset2);
+ for (f = 0; f < maxfd; f++) {
+ if (FD_ISSET(f, readfds) && FD_ISSET(f, &localset)) {
+ FD_SET(f, &localset2);
}
}