diff options
author | Aureus <andrew.todd@gmail.com> | 2020-06-01 18:21:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 15:21:27 -0700 |
commit | c7267235455f48e7ce4aa5cb1d0bc0cfe2b7ba09 (patch) | |
tree | 6f90f45750434e90f25dce3a7e798a6a497e95c2 /adapters/libev.h | |
parent | 4152bfce7ce41a6bff883af7d4e04d55627a036d (diff) |
Use explicit pointer casting for c++ compatibility (#826)
Diffstat (limited to 'adapters/libev.h')
-rw-r--r-- | adapters/libev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adapters/libev.h b/adapters/libev.h index 7057dbd..e1e7bbd 100644 --- a/adapters/libev.h +++ b/adapters/libev.h @@ -121,12 +121,12 @@ static void redisLibevCleanup(void *privdata) { static void redisLibevTimeout(EV_P_ ev_timer *timer, int revents) { ((void)revents); - redisLibevEvents *e = timer->data; + redisLibevEvents *e = (redisLibevEvents*)timer->data; redisAsyncHandleTimeout(e->context); } static void redisLibevSetTimeout(void *privdata, struct timeval tv) { - redisLibevEvents *e = privdata; + redisLibevEvents *e = (redisLibevEvents*)privdata; struct ev_loop *loop = e->loop; ((void)loop); |