core: fixed compile warnings on mac os x
authorDaniel-Constantin Mierla <miconda@gmail.com>
Sat, 30 Apr 2011 08:20:42 +0000 (10:20 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Sun, 1 May 2011 03:22:34 +0000 (05:22 +0200)
io_wait.h

index 7220dd5..b7ae925 100644 (file)
--- a/io_wait.h
+++ b/io_wait.h
@@ -283,9 +283,9 @@ retry2:
                                                io_wait_loop_kqueue EV_ERROR case */
                                                if (unlikely(!(errno == EBADF || errno == ENOENT)))
                                                        BUG("kq_ev_change: kevent flush changes failed:"
-                                                                       " (unexpected error) %s [%d] (%d/%d)\n",
+                                                                       " (unexpected error) %s [%d] (%d/%lu)\n",
                                                                                strerror(errno), errno,
-                                                                               r, h->kq_nchanges);
+                                                                               r, (unsigned long)h->kq_nchanges);
                                                continue; /* skip over it */
                                        }
                                }
@@ -1219,9 +1219,10 @@ again:
                                        BUG("io_wait_loop_kqueue: unknown filter: kqueue: event "
                                                        "%d/%d: fd=%d, filter=%d, flags=0x%x, fflags=0x%x,"
                                                        " data=%lx, udata=%lx\n",
-                                       r, n, h->kq_array[r].ident, h->kq_array[r].filter,
+                                       r, n, (int)h->kq_array[r].ident, (int)h->kq_array[r].filter,
                                        h->kq_array[r].flags, h->kq_array[r].fflags,
-                                       (long)h->kq_array[r].data, (long)h->kq_array[r].udata);
+                                       (unsigned long)h->kq_array[r].data,
+                                       (unsigned long)h->kq_array[r].udata);
                                }
                        }
                }