diff --git a/src/rdb.c b/src/rdb.c index 25e900689..7deed2a2d 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -94,7 +94,7 @@ void rdbReportError(int corruption_error, int linenum, char *reason, ...) { exit(1); } -static int rdbWriteRaw(rio *rdb, void *p, size_t len) { +static ssize_t rdbWriteRaw(rio *rdb, void *p, size_t len) { if (rdb && rioWrite(rdb,p,len) == 0) return -1; return len;