disk: Fix compile warning: comparison between signed and unsigned integer expressions
This commit is contained in:
1 parent
a6c20b5ee4
commit
ca1db96690
1 file changed
+1
-1
+1
-1
@@ -221,7 +221,7 @@ int disk_dump_dev(int fd, const char * file) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
blksize = lseek(fd, 0, SEEK_END);
|
blksize = lseek(fd, 0, SEEK_END);
|
||||||
if ( blksize == (off_t)-1 ) {
|
if ( (off_t)blksize == (off_t)-1 ) {
|
||||||
ERROR_INFO("Cannot get size of block device");
|
ERROR_INFO("Cannot get size of block device");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user