Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #207 from borisz/bz/fix-warnings

Fix warnings for kqueue
  • Loading branch information...
commit e326303038f40c06cba05c9a2b9ac239835419fe 2 parents 56c7e27 + 88eabcb
@tailhook tailhook authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/aio/poller_kqueue.inc
  2. +1 −1  src/utils/efd_pipe.inc
View
6 src/aio/poller_kqueue.inc
@@ -80,7 +80,7 @@ void nn_poller_rm (struct nn_poller *self, struct nn_poller_hndl *hndl)
/* Invalidate any subsequent events on this file descriptor. */
for (i = self->index; i != self->nevents; ++i)
- if (self->events [i].ident == hndl->fd)
+ if (self->events [i].ident == (unsigned) hndl->fd)
self->events [i].udata = (nn_poller_udata) NULL;
}
@@ -113,7 +113,7 @@ void nn_poller_reset_in (struct nn_poller *self, struct nn_poller_hndl *hndl)
/* Invalidate any subsequent IN events on this file descriptor. */
for (i = self->index; i != self->nevents; ++i)
- if (self->events [i].ident == hndl->fd &&
+ if (self->events [i].ident == (unsigned) hndl->fd &&
self->events [i].filter == EVFILT_READ)
self->events [i].udata = (nn_poller_udata) NULL;
}
@@ -147,7 +147,7 @@ void nn_poller_reset_out (struct nn_poller *self, struct nn_poller_hndl *hndl)
/* Invalidate any subsequent OUT events on this file descriptor. */
for (i = self->index; i != self->nevents; ++i)
- if (self->events [i].ident == hndl->fd &&
+ if (self->events [i].ident == (unsigned) hndl->fd &&
self->events [i].filter == EVFILT_WRITE)
self->events [i].udata = (nn_poller_udata) NULL;
}
View
2  src/utils/efd_pipe.inc
@@ -96,7 +96,7 @@ void nn_efd_unsignal (struct nn_efd *self)
if (nbytes < 0 && errno == EAGAIN)
nbytes = 0;
errno_assert (nbytes >= 0);
- if (nn_fast (nbytes < sizeof (buf)))
+ if (nn_fast ((size_t) nbytes < sizeof (buf)))
break;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.