diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-02 17:37:22 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-02 17:37:22 +0100 |
commit | 314c04840b5d576e7178f13e75a21b87e8bf01de (patch) | |
tree | d08abffcaf5bdc3ec02a7de0ec1f9604c780b7d9 /example-libev.c | |
parent | e51ddd7c2ca49beaee361861d1989b2597aac5bd (diff) |
Update examples
Diffstat (limited to 'example-libev.c')
-rw-r--r-- | example-libev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example-libev.c b/example-libev.c index f17fe4e..199d706 100644 --- a/example-libev.c +++ b/example-libev.c @@ -17,7 +17,7 @@ void getCallback(redisAsyncContext *c, void *r, void *privdata) { void disconnectCallback(const redisAsyncContext *c, int status) { if (status != REDIS_OK) { - printf("Error: %s\n", c->error); + printf("Error: %s\n", c->errstr); } } @@ -26,9 +26,9 @@ int main (int argc, char **argv) { struct ev_loop *loop = ev_default_loop(0); redisAsyncContext *c = redisAsyncConnect("127.0.0.1", 6379); - if (c->error != NULL) { + if (c->err) { /* Let *c leak for now... */ - printf("Error: %s\n", c->error); + printf("Error: %s\n", c->errstr); return 1; } |