if (expect_false (nget == port_eventmax))
{
ev_free (port_events);
- port_eventmax = array_roundsize (port_event_t, port_eventmax << 1);
+ port_eventmax = array_nextsize (sizeof (port_event_t), port_eventmax, port_eventmax + 1);
port_events = (port_event_t *)ev_malloc (sizeof (port_event_t) * port_eventmax);
}
}
-static int
+int inline_size
port_init (EV_P_ int flags)
{
/* Initalize the kernel queue */
return EVBACKEND_PORT;
}
-static void
+void inline_size
port_destroy (EV_P)
{
- close (backend_fd);
-
ev_free (port_events);
}
-static void
+void inline_size
port_fork (EV_P)
{
close (backend_fd);