summaryrefslogtreecommitdiff
path: root/event.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 /event.c
parente7d1fc1a4bbd47e0d2f7d59d1ce4ccaa4fa0ab10 (diff)
*** empty log message ***
Diffstat (limited to 'event.c')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 0fc6850..783eef1 100644
--- a/event.c
+++ b/event.c
@@ -332,7 +332,7 @@ struct x_once
static void
x_once_cb (int revents, void *arg)
{
- struct x_once *once = arg;
+ struct x_once *once = (struct x_once *)arg;
once->cb (once->fd, revents, once->arg);
free (once);
@@ -340,7 +340,7 @@ x_once_cb (int revents, void *arg)
int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv)
{
- struct x_once *once = malloc (sizeof (struct x_once));
+ struct x_once *once = (struct x_once *)malloc (sizeof (struct x_once));
dLOOPbase;
if (!once)