Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #207

Merged
merged 1 commit into from Mar 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/aio/poller_kqueue.inc
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/efd_pipe.inc
Expand Up @@ -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;
}
}
Expand Down