summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <sweskman@gmail.com>2022-07-08 12:32:41 +0000
committerKristján Valur Jónsson <sweskman@gmail.com>2022-07-08 13:52:43 +0000
commitf69fac7690fb22a7fc19dba61ef70e5f79ccb2e9 (patch)
tree6681c79bbaf0d8f5cdc47d217aa4f832fe87a967 /test.c
parent005d7edebe098bcc90dd0c0003c5710e60d44b63 (diff)
Drop `const` on redisAsyncContext in redisConnectCallback
Since the callback is now re-entrant, it can call apis such as redisAsyncDisconnect()
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.c b/test.c
index 1decd19..fccaca4 100644
--- a/test.c
+++ b/test.c
@@ -1946,7 +1946,7 @@ static void asCleanup(void* data)
static void commandCallback(struct redisAsyncContext *ac, void* _reply, void* _privdata);
-static void connectCallback(const redisAsyncContext *c, int status) {
+static void connectCallback(redisAsyncContext *c, int status) {
struct _astest *t = (struct _astest *)c->data;
assert(t == &astest);
assert(t->connects == 0);