Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <[email protected]>
  • Loading branch information
sustrik committed Jun 5, 2016
1 parent 70ad20b commit 680aff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion epoll.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion kqueue.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <unistd.h>

#include "cr.h"
#include "fd.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 680aff6

Please sign in to comment.