summaryrefslogtreecommitdiffstats
path: root/src/dump.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-09-22 23:16:56 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-09-22 23:16:56 +0200
commitb0130e52d6e6e3a893b690524254652f65a9621e (patch)
treef2de8f1a6f88e7486e5a46eb91c1d1e66601b1f6 /src/dump.c
parent6d69da6cd120fac092c92717bf37e7dcc3972b6b (diff)
download0xFFFF-b0130e52d6e6e3a893b690524254652f65a9621e.tar.bz2
Fix compilation on 32bit system
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;
}