Skip to content

Commit

Permalink
Fix two more sign-compare warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Jan 13, 2017
1 parent bb369ec commit 9320364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/default_eventloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ default_eventloop_run_once(getdns_eventloop *loop, int blocking)
else if (default_loop->timeout_times[i] < timeout)
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])
continue;
if (default_loop->fd_events[fd]->read_cb)
Expand Down Expand Up @@ -240,7 +240,7 @@ default_eventloop_run_once(getdns_eventloop *loop, int blocking)
exit(EXIT_FAILURE);
}
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] &&
default_loop->fd_events[fd]->read_cb &&
FD_ISSET(fd, &readfds))
Expand Down

0 comments on commit 9320364

Please sign in to comment.