Commit b673f0cf authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Change prototype of async reply callback

parent 4b530833
......@@ -34,7 +34,7 @@
struct redisAsyncContext; /* need forward declaration of redisAsyncContext */
/* Reply callback prototype and container */
typedef void (redisCallbackFn)(struct redisAsyncContext*, redisReply*, void*);
typedef void (redisCallbackFn)(struct redisAsyncContext*, void*, void*);
typedef struct redisCallback {
struct redisCallback *next; /* simple singly linked list */
redisCallbackFn *fn;
......
......@@ -6,7 +6,8 @@
#include "async.h"
#include "adapters/libev.h"
void getCallback(redisAsyncContext *c, redisReply *reply, void *privdata) {
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
redisReply *reply = r;
if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata, reply->str);
......
......@@ -6,7 +6,8 @@
#include "async.h"
#include "adapters/libevent.h"
void getCallback(redisAsyncContext *c, redisReply *reply, void *privdata) {
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
redisReply *reply = r;
if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata, reply->str);
......
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