diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-10-19 14:19:47 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-10-19 14:19:51 +0200 |
commit | ba42ab2ef8fcf9bf88c0d68414d24c3bb00e00c8 (patch) | |
tree | 2a2fcd81fad6b9f74a8eea16e7e549cfa9bfdcfe /hiredis.c | |
parent | f9596db90bf030dfbd008151521d1c72e1e497e4 (diff) |
Revert privdata in context callbacks to being non-const
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -631,20 +631,20 @@ redisContext *redisConnectNonBlock(const char *ip, int port, redisReplyFunctions } /* Register callback that is triggered when redisDisconnect is called. */ -void redisSetDisconnectCallback(redisContext *c, redisContextCallbackFn *fn, const void *privdata) { +void redisSetDisconnectCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata) { c->cbDisconnect.fn = fn; c->cbDisconnect.privdata = privdata; } /* Register callback that is triggered when a command is put in the output * buffer when the context is non-blocking. */ -void redisSetCommandCallback(redisContext *c, redisContextCallbackFn *fn, const void *privdata) { +void redisSetCommandCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata) { c->cbCommand.fn = fn; c->cbCommand.privdata = privdata; } /* Register callback that is triggered when the context is free'd. */ -void redisSetFreeCallback(redisContext *c, redisContextCallbackFn *fn, const void *privdata) { +void redisSetFreeCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata) { c->cbFree.fn = fn; c->cbFree.privdata = privdata; } |