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 /event.c | |
parent | e7d1fc1a4bbd47e0d2f7d59d1ce4ccaa4fa0ab10 (diff) |
*** empty log message ***
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |