rio.c fdset write() method fixed: wrong type for return value.

This commit is contained in:
antirez 2014-10-17 17:02:42 +02:00
parent 525c488f63
commit fd112f52dc

View File

@ -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);