mirror of https://github.com/getdnsapi/getdns.git
Fix two more sign-compare warnings
This commit is contained in:
parent
bb369ec7d9
commit
9320364053
|
@ -212,7 +212,7 @@ default_eventloop_run_once(getdns_eventloop *loop, int blocking)
|
||||||
else if (default_loop->timeout_times[i] < timeout)
|
else if (default_loop->timeout_times[i] < timeout)
|
||||||
timeout = default_loop->timeout_times[i];
|
timeout = default_loop->timeout_times[i];
|
||||||
}
|
}
|
||||||
for (fd = 0; fd < FD_SETSIZE; fd++) {
|
for (fd = 0; fd < (int)FD_SETSIZE; fd++) {
|
||||||
if (!default_loop->fd_events[fd])
|
if (!default_loop->fd_events[fd])
|
||||||
continue;
|
continue;
|
||||||
if (default_loop->fd_events[fd]->read_cb)
|
if (default_loop->fd_events[fd]->read_cb)
|
||||||
|
@ -240,7 +240,7 @@ default_eventloop_run_once(getdns_eventloop *loop, int blocking)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
now = get_now_plus(0);
|
now = get_now_plus(0);
|
||||||
for (fd = 0; fd < FD_SETSIZE; fd++) {
|
for (fd = 0; fd < (int)FD_SETSIZE; fd++) {
|
||||||
if (default_loop->fd_events[fd] &&
|
if (default_loop->fd_events[fd] &&
|
||||||
default_loop->fd_events[fd]->read_cb &&
|
default_loop->fd_events[fd]->read_cb &&
|
||||||
FD_ISSET(fd, &readfds))
|
FD_ISSET(fd, &readfds))
|
||||||
|
|
Loading…
Reference in New Issue