X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/41a098dde97e50ab992166256ba6da1ffc2e431c..cff78812ebbcab7601919f479447150fb7c2c9f4:/ev_kqueue.c diff --git a/ev_kqueue.c b/ev_kqueue.c index 2c33e54..76ac012 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -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; @@ -193,7 +193,7 @@ kqueue_init (EV_P_ int flags) kqueue_changemax = 0; kqueue_changecnt = 0; - return EVMETHOD_KQUEUE; + return EVBACKEND_KQUEUE; } static void