X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/deff62d26ff4c1324816c04c0c6db1e4db435870..890dc1eecee86fd5ec64aaa8573288e23156f85e:/ev_poll.c?ds=sidebyside diff --git a/ev_poll.c b/ev_poll.c index e809ddd..de516d7 100644 --- a/ev_poll.c +++ b/ev_poll.c @@ -46,14 +46,14 @@ poll_modify (EV_P_ int fd, int oev, int nev) if (oev == nev) return; - array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init); + array_needsize (int, pollidxs, pollidxmax, fd + 1, pollidx_init); idx = pollidxs [fd]; if (idx < 0) /* need to allocate a new pollfd */ { idx = pollcnt++; - array_needsize (polls, pollmax, pollcnt, ); + array_needsize (struct pollfd, polls, pollmax, pollcnt, ); polls [idx].fd = fd; } @@ -85,7 +85,7 @@ poll_poll (EV_P_ ev_tstamp timeout) else if (errno == ENOMEM && !syserr_cb) fd_enomem (EV_A); else if (errno != EINTR) - syserr (); + syserr ("(libev) poll"); return; } @@ -118,3 +118,4 @@ poll_destroy (EV_P) ev_free (pollidxs); ev_free (polls); } +