From 680aff6888d67aacfea7be537c20a344de3e1b33 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 5 Jun 2016 06:42:00 +0200 Subject: [PATCH] Fix clang warnings Signed-off-by: Martin Sustrik --- epoll.inc | 2 +- kqueue.inc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/epoll.inc b/epoll.inc index 50db2771..3d84d88c 100644 --- a/epoll.inc +++ b/epoll.inc @@ -167,7 +167,7 @@ void dill_pollset_clean(int fd) { } /* If needed, remove the fd from the changelist. */ if(fdi->next) { - int *pidx = &dill_changelist; + uint32_t *pidx = &dill_changelist; while(1) { dill_assert(*pidx != 0 && *pidx != DILL_ENDLIST); if(*pidx - 1 == fd) break; diff --git a/kqueue.inc b/kqueue.inc index 32a5c9bd..e3cbbd65 100644 --- a/kqueue.inc +++ b/kqueue.inc @@ -29,6 +29,7 @@ #include #include #include +#include #include "cr.h" #include "fd.h" @@ -170,7 +171,7 @@ void dill_pollset_clean(int fd) { fdi->currevs = 0; /* If needed, remove the fd from the changelist. */ if(fdi->next) { - int *pidx = &dill_changelist; + uint32_t *pidx = &dill_changelist->next; while(1) { dill_assert(*pidx != 0 && *pidx != DILL_ENDLIST); if(*pidx - 1 == fd) break;