diff options
author | root <root> | 2007-11-11 16:59:35 +0000 |
---|---|---|
committer | root <root> | 2007-11-11 16:59:35 +0000 |
commit | 1d0c38b8a4f5abc4f06ad5f8b429035d2e465883 (patch) | |
tree | 46f3d45f9ac276e8504968f5f5be89584eb52d3a | |
parent | a1558a0f509cece0efa6164c6b8ee42d6cdf7f25 (diff) |
fix kqueue c++ support
-rw-r--r-- | ev_kqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ev_kqueue.c b/ev_kqueue.c index 4933270..eeaea3e 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -83,7 +83,7 @@ kqueue_poll (EV_P_ ev_tstamp timeout) { ev_free (kqueue_events); kqueue_eventmax = array_roundsize (struct kevent, kqueue_changecnt); - kqueue_events = ev_malloc (sizeof (struct kevent) * kqueue_eventmax); + kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax); } ts.tv_sec = (time_t)timeout; @@ -147,7 +147,7 @@ kqueue_poll (EV_P_ ev_tstamp timeout) { ev_free (kqueue_events); kqueue_eventmax = array_roundsize (struct kevent, kqueue_eventmax << 1); - kqueue_events = ev_malloc (sizeof (struct kevent) * kqueue_eventmax); + kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax); } } @@ -186,7 +186,7 @@ kqueue_init (EV_P_ int flags) method_poll = kqueue_poll; kqueue_eventmax = 64; /* intiial number of events receivable per poll */ - kqueue_events = ev_malloc (sizeof (struct kevent) * kqueue_eventmax); + kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax); kqueue_changes = 0; kqueue_changemax = 0; |