]> granicus.if.org Git - libevent/commitdiff
fix a signed/unsigned warning in kqueue.c
authorNick Mathewson <nickm@torproject.org>
Thu, 14 Oct 2010 17:15:32 +0000 (13:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 Oct 2010 17:15:32 +0000 (13:15 -0400)
kqueue.c

index 111427c0dd29372a22d8e9e28151e6a01c1fcdc0..920129826f46a6dbe009c3c6d095f8e564e69bee 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -147,7 +147,7 @@ kq_init(struct event_base *base)
         */
        if (kevent(kq,
                kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
-           kqueueop->events[0].ident != -1 ||
+           (int)kqueueop->events[0].ident != -1 ||
            kqueueop->events[0].flags != EV_ERROR) {
                event_warn("%s: detected broken kqueue; not using.", __func__);
                goto err;