const int metadata_size = sizeof(signed_file.delta_size) + sizeof(signed_file.signature_size) + sizeof(signed_file.certificate_size) + MAGIC_NUMBER_SIZE;
int ret = -1;
_CLEANUP_CLOSE_ int signed_file_fd = -1;
- off_t offset = (off_t)-1;
+ long long int offset = (off_t)-1;
unsigned int data_size = 0;
_I("Check signed file...");
data_size = signed_file.delta_size + signed_file.signature_size + signed_file.certificate_size;
offset = lseek(signed_file_fd, -metadata_size, SEEK_END);
- ASSERT_RETV(offset == data_size, false, "Invalid file size : Expected(%u), Real(%llu)", data_size, offset);
+ ASSERT_RETV(offset == data_size, false, "Invalid file size : Expected(%u), Real(%lld)", data_size, offset);
return true;
}
{
int ret = -1;
_CLEANUP_CLOSE_ int signed_file_fd = -1;
- off_t offset = (off_t)-1;
_I("Read signed file...");