summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
authorroot <root>2007-11-06 16:51:20 +0000
committerroot <root>2007-11-06 16:51:20 +0000
commit4b05fe94e44407cd62092863e204337c521e7d8a (patch)
tree592aa98976df84d148cbf1a78093e1589369c055 /ev_epoll.c
parente7d1fc1a4bbd47e0d2f7d59d1ce4ccaa4fa0ab10 (diff)
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r--ev_epoll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 9f5bd25..957b71b 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -52,7 +52,7 @@ static void
epoll_poll (EV_P_ ev_tstamp timeout)
{
int i;
- int eventcnt = epoll_wait (epoll_fd, epoll_events, epoll_eventmax, ceil (timeout * 1000.));
+ int eventcnt = epoll_wait (epoll_fd, epoll_events, epoll_eventmax, (int)ceil (timeout * 1000.));
if (eventcnt < 0)
{
@@ -75,7 +75,7 @@ epoll_poll (EV_P_ ev_tstamp timeout)
{
ev_free (epoll_events);
epoll_eventmax = array_roundsize (epoll_events, epoll_eventmax << 1);
- epoll_events = ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
+ epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
}
}
@@ -94,7 +94,7 @@ epoll_init (EV_P_ int flags)
method_poll = epoll_poll;
epoll_eventmax = 64; /* intiial number of events receivable per poll */
- epoll_events = ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
+ epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
return EVMETHOD_EPOLL;
}