summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-10-17 17:02:42 +0200
committerantirez <antirez@gmail.com>2014-10-17 17:02:44 +0200
commitfd112f52dce71e1ebd3fc3ffe1b7d521c628877e (patch)
tree6225ce25d17640fc3960f3b6c49f156adfd27c45
parent525c488f639672e5b36cc67ede857d25a39c016d (diff)
downloadredis-fd112f52dce71e1ebd3fc3ffe1b7d521c628877e.tar.gz
rio.c fdset write() method fixed: wrong type for return value.
-rw-r--r--src/rio.c2
1 files changed, 1 insertions, 1 deletions
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);