redisReplyReaderFeed should take a const char*
This commit is contained in:
parent
fbe756d838
commit
864bce944b
@ -504,7 +504,7 @@ char *redisReplyReaderGetError(void *reader) {
|
|||||||
return r->error;
|
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;
|
redisReader *r = reader;
|
||||||
|
|
||||||
/* Copy the provided buffer. */
|
/* Copy the provided buffer. */
|
||||||
|
@ -135,7 +135,7 @@ int redisReplyReaderSetPrivdata(void *reader, void *privdata);
|
|||||||
void *redisReplyReaderGetObject(void *reader);
|
void *redisReplyReaderGetObject(void *reader);
|
||||||
char *redisReplyReaderGetError(void *reader);
|
char *redisReplyReaderGetError(void *reader);
|
||||||
void redisReplyReaderFree(void *ptr);
|
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);
|
int redisReplyReaderGetReply(void *reader, void **reply);
|
||||||
|
|
||||||
/* Functions to format a command according to the protocol. */
|
/* Functions to format a command according to the protocol. */
|
||||||
|
Loading…
Reference in New Issue
Block a user