1
1

connect: Fixed signedness warnings from MSVC.

Этот коммит содержится в:
Andreas Schneider 2010-05-12 20:54:42 +02:00
родитель b1b42aeb9c
Коммит 46b249f5ce

Просмотреть файл

@ -480,6 +480,7 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
fd_set *readfds, struct timeval *timeout) { fd_set *readfds, struct timeval *timeout) {
struct timeval zerotime; struct timeval zerotime;
fd_set localset, localset2; fd_set localset, localset2;
socket_t f;
int rep; int rep;
int set; int set;
int i; 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 */ /* Look into the localset for active fd */
set = 0; set = 0;
for (i = 0; (i < maxfd) && !set; i++) { for (f = 0; (f < maxfd) && !set; f++) {
if (FD_ISSET(i, &localset)) { if (FD_ISSET(f, &localset)) {
set = 1; set = 1;
} }
} }
@ -583,9 +584,9 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
outchannels[j] = NULL; outchannels[j] = NULL;
FD_ZERO(&localset2); FD_ZERO(&localset2);
for (i = 0; i < maxfd; i++) { for (f = 0; f < maxfd; f++) {
if (FD_ISSET(i, readfds) && FD_ISSET(i, &localset)) { if (FD_ISSET(f, readfds) && FD_ISSET(f, &localset)) {
FD_SET(i, &localset2); FD_SET(f, &localset2);
} }
} }