Skip to content

Commit

Permalink
fix win32 comparsion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Apr 11, 2022
1 parent 4b345e5 commit f12be4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ static int set_kqueue_fds(struct re *re, re_sock_t fd, int flags)
*/
static int rebuild_fds(struct re *re)
{
int i, err = 0;
re_sock_t i;
int err = 0;

DEBUG_INFO("rebuilding fds (nfds=%d)\n", re->nfds);

Expand Down Expand Up @@ -686,7 +687,8 @@ void fd_close(re_sock_t fd)
static int fd_poll(struct re *re)
{
const uint64_t to = tmr_next_timeout(&re->tmrl);
int i, n, index;
int n, index;
re_sock_t i;
#ifdef HAVE_SELECT
fd_set rfds, wfds, efds;
#endif
Expand Down Expand Up @@ -937,7 +939,7 @@ int fd_setsize(int maxfds)
void fd_debug(void)
{
const struct re *re = re_get();
int i;
re_sock_t i;

if (!re->fhs)
return;
Expand Down

0 comments on commit f12be4b

Please sign in to comment.