From fd112f52dce71e1ebd3fc3ffe1b7d521c628877e Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 17 Oct 2014 17:02:42 +0200 Subject: rio.c fdset write() method fixed: wrong type for return value. --- src/rio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rio.c b/src/rio.c index 3513e1889..2083486c2 100644 --- a/src/rio.c +++ b/src/rio.c @@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) { * if there is some pending buffer, so this function is also used in order * to implement rioFdsetFlush(). */ static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) { - size_t retval; + ssize_t retval; int j; unsigned char *p = (unsigned char*) buf; int doflush = (buf == NULL && len == 0); -- cgit v1.2.1