X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/c92198a5c36ea9d1b1e0fae8254eb5609553bbf9..97441c8a52d3482101c90e3c9e22fc00d5199b75:/ev_kqueue.c?ds=sidebyside diff --git a/ev_kqueue.c b/ev_kqueue.c index 3103db1..133f33c 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -39,8 +39,6 @@ void inline_speed 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, EMPTY2); @@ -145,16 +143,13 @@ kqueue_poll (EV_P_ ev_tstamp timeout) int inline_size kqueue_init (EV_P_ int flags) { - struct kevent ch, ev; - /* Initalize the kernel queue */ if ((backend_fd = kqueue ()) < 0) return 0; fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ - /* fudge *might* be zero from the documentation, but bsd docs are notoriously wrong */ - backend_fudge = 1e-3; /* needed to compensate for kevent returning early */ + backend_fudge = 0.; backend_modify = kqueue_modify; backend_poll = kqueue_poll;