From 864bce944be1331c70ed353aeb083607c2a31acc Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 27 Jan 2011 14:07:06 +0100 Subject: redisReplyReaderFeed should take a const char* --- hiredis.c | 2 +- hiredis.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hiredis.c b/hiredis.c index 243ea75..1017566 100644 --- a/hiredis.c +++ b/hiredis.c @@ -504,7 +504,7 @@ char *redisReplyReaderGetError(void *reader) { return r->error; } -void redisReplyReaderFeed(void *reader, char *buf, size_t len) { +void redisReplyReaderFeed(void *reader, const char *buf, size_t len) { redisReader *r = reader; /* Copy the provided buffer. */ diff --git a/hiredis.h b/hiredis.h index c33606b..007e06f 100644 --- a/hiredis.h +++ b/hiredis.h @@ -135,7 +135,7 @@ int redisReplyReaderSetPrivdata(void *reader, void *privdata); void *redisReplyReaderGetObject(void *reader); char *redisReplyReaderGetError(void *reader); void redisReplyReaderFree(void *ptr); -void redisReplyReaderFeed(void *reader, char *buf, size_t len); +void redisReplyReaderFeed(void *reader, const char *buf, size_t len); int redisReplyReaderGetReply(void *reader, void **reply); /* Functions to format a command according to the protocol. */ -- cgit v1.2.3