Fix some signed/unsigned comparison warnings.

This commit is contained in:
Milan Broz
2018-10-14 20:36:45 +02:00
parent a74aecedf1
commit 825fc895dc
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ int LUKS_decrypt_from_storage(char *dst, size_t dstLength,
if (read_lseek_blockwise(devfd, device_block_size(device),
device_alignment(device), dst, dstLength,
sector * SECTOR_SIZE) < 0) {
if (!fstat(devfd, &st) && (st.st_size < dstLength))
if (!fstat(devfd, &st) && (st.st_size < (off_t)dstLength))
log_err(ctx, _("Device %s is too small."), device_path(device));
else
log_err(ctx, _("IO error while decrypting keyslot."));