X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/42d2222c89438fb21dc75622c71c99e2eb2f195f..1ad1e600c3eebe009db39a0f9750ed4adb078857:/ev_kqueue.c diff --git a/ev_kqueue.c b/ev_kqueue.c index 701f6d2..1a06fca 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -40,7 +40,7 @@ kqueue_change (EV_P_ int fd, int filter, int flags, int fflags) struct kevent *ke; ++kqueue_changecnt; - array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, ); + array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, EMPTY2); ke = &kqueue_changes [kqueue_changecnt - 1]; memset (ke, 0, sizeof (struct kevent)); @@ -88,7 +88,7 @@ kqueue_poll (EV_P_ ev_tstamp timeout) } ts.tv_sec = (time_t)timeout; - ts.tv_nsec = (long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9; + ts.tv_nsec = (long)((timeout - (ev_tstamp)ts.tv_sec) * 1e9); res = kevent (kqueue_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts); kqueue_changecnt = 0;