]> git.llucax.com Git - software/libev.git/blobdiff - ev_kqueue.c
renamed METHODs to BACKENDs
[software/libev.git] / ev_kqueue.c
index 2c33e547a8acf91d06221af273b6420f4f6b8459..76ac012280645f0367da5f9c99496d666f74796c 100644 (file)
@@ -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