From 9320364053b234a60c0afd02eb500ee5d448aa66 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Fri, 13 Jan 2017 21:28:07 +0100 Subject: [PATCH] Fix two more sign-compare warnings --- src/extension/default_eventloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/default_eventloop.c b/src/extension/default_eventloop.c index 0344f447d..e9e745509 100644 --- a/src/extension/default_eventloop.c +++ b/src/extension/default_eventloop.c @@ -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) @@ -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))