summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/os_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/os_file.c b/src/util/os_file.c
index 400a2a12c4d..6e78a231d67 100644
--- a/src/util/os_file.c
+++ b/src/util/os_file.c
@@ -37,7 +37,7 @@ readN(int fd, char *buf, size_t len)
total += ret;
} while (total != len);
- return total ? total : err;
+ return total ? (ssize_t)total : err;
}
char *