Fix compilation on 32bit system
This commit is contained in:
1 parent
6d69da6cd1
commit
b0130e52d6
4 files changed
+8
-8
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user