mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
rio.c fdset write() method fixed: wrong type for return value.
This commit is contained in:
parent
525c488f63
commit
fd112f52dc
@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) {
|
|||||||
* if there is some pending buffer, so this function is also used in order
|
* if there is some pending buffer, so this function is also used in order
|
||||||
* to implement rioFdsetFlush(). */
|
* to implement rioFdsetFlush(). */
|
||||||
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
|
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
|
||||||
size_t retval;
|
ssize_t retval;
|
||||||
int j;
|
int j;
|
||||||
unsigned char *p = (unsigned char*) buf;
|
unsigned char *p = (unsigned char*) buf;
|
||||||
int doflush = (buf == NULL && len == 0);
|
int doflush = (buf == NULL && len == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user