Unverified Commit c7267235 authored by Aureus's avatar Aureus Committed by GitHub
Browse files

Use explicit pointer casting for c++ compatibility (#826)

parent 4152bfce
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment