summaryrefslogtreecommitdiff
path: root/adapters
diff options
context:
space:
mode:
authorcqm <mtdxc@126.com>2022-10-24 11:42:57 +0800
committerMichael Grunder <michael.grunder@gmail.com>2022-10-24 11:04:47 -0700
commitceb8a8815e5e436d944e49021c60f114344d3f3e (patch)
tree6ddb8b6a289c809e754545cce0b0e1a1356c869f /adapters
parent3b15a04b5939fc85f5e134ed09eb5c9e1584bef1 (diff)
fixed cpp build error with adapters/libhv.h
Diffstat (limited to 'adapters')
-rw-r--r--adapters/libhv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/adapters/libhv.h b/adapters/libhv.h
index e88e543..3b54c70 100644
--- a/adapters/libhv.h
+++ b/adapters/libhv.h
@@ -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) {
@@ -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;
}