summaryrefslogtreecommitdiffstats
path: root/src/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index 7c3657f..1931c99 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -203,7 +203,7 @@ int check_badblocks(char *mtddev)
} else {
char readbuf[2048]; // XXX hardcoded like mtd-utils?? ugly!
// dummy -- should be removed
- if (pread(fd, readbuf, meminfo.writesize, i) != meminfo.writesize) {
+ if (pread(fd, readbuf, meminfo.writesize, i) != (ssize_t)meminfo.writesize) {
perror("pread");
goto closeall;
}