disk: Fix compile warning: comparison between signed and unsigned integer expressions

This commit is contained in:
Pali Rohár committed 2018-02-08 19:49:13 +01:00
1 parent a6c20b5ee4
commit ca1db96690
1 file changed
+1 -1
+1 -1
View File
@@ -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;
} }