Skip to content

Commit

Permalink
fixed cpp build error with adapters/libhv.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdxc authored and michael-grunder committed Oct 24, 2022
1 parent 3b15a04 commit ceb8a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/libhv.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void redisLibhvCleanup(void *privdata) {

static void redisLibhvTimeout(htimer_t* timer) {
hio_t* io = (hio_t*)hevent_userdata(timer);
redisAsyncHandleTimeout(hevent_userdata(io));
redisAsyncHandleTimeout((redisAsyncContext*)hevent_userdata(io));
}

static void redisLibhvSetTimeout(void *privdata, struct timeval tv) {
Expand Down Expand Up @@ -94,7 +94,7 @@ static int redisLibhvAttach(redisAsyncContext* ac, hloop_t* loop) {
}

/* Create container struct to keep track of our io and any timer */
events = hi_malloc(sizeof(*events));
events = (redisLibhvEvents*)hi_malloc(sizeof(*events));
if (events == NULL) {
return REDIS_ERR;
}
Expand Down

0 comments on commit ceb8a88

Please sign in to comment.