Change prototype of async reply callback

This commit is contained in:
Pieter Noordhuis 2010-11-01 13:21:26 +01:00
parent 4b530833c6
commit b673f0cfb3
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);