summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 18:50:10 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 18:50:10 +0200
commitd4ebb60d65499ca5e2290eedcd02beb4736771ca (patch)
treef2bb97a391180d94ddd5a347d1ef2a9f285579fa /hiredis.h
parentac9fb4993bfbc37477c772db9c7ae934012c8e85 (diff)
More OOM checks in the protocol reader
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 1655801..3a79e11 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -134,7 +134,7 @@ typedef struct redisReader {
/* Public API for the protocol parser. */
redisReader *redisReaderCreate(void);
void redisReaderFree(redisReader *r);
-void redisReaderFeed(redisReader *r, const char *buf, size_t len);
+int redisReaderFeed(redisReader *r, const char *buf, size_t len);
int redisReaderGetReply(redisReader *r, void **reply);
/* Backwards compatibility, can be removed on big version bump. */