diff options
author | root <root> | 2007-11-06 16:51:20 +0000 |
---|---|---|
committer | root <root> | 2007-11-06 16:51:20 +0000 |
commit | 4b05fe94e44407cd62092863e204337c521e7d8a (patch) | |
tree | 592aa98976df84d148cbf1a78093e1589369c055 /ev_epoll.c | |
parent | e7d1fc1a4bbd47e0d2f7d59d1ce4ccaa4fa0ab10 (diff) |
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r-- | ev_epoll.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |