diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-07-07 15:36:04 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-07-25 15:00:24 +0200 |
commit | 8aa8360eca31b3b9f34645015df0556ce0e20e6d (patch) | |
tree | b090f30556c8862accf3b074afc12568d83c6ac5 /lib | |
parent | 9b30232bfc6b98e7caa517bbec77f00fb46c93de (diff) | |
download | u-boot-8aa8360eca31b3b9f34645015df0556ce0e20e6d.tar.gz u-boot-8aa8360eca31b3b9f34645015df0556ce0e20e6d.tar.bz2 u-boot-8aa8360eca31b3b9f34645015df0556ce0e20e6d.zip |
efi_loader: correct signature of CalculateCrc32()
Use const for the buffer. We are not changing the buffer.
Use efi_uintn_t where prescribed by the UEFI spec.
Prefer u32 over uint32_t.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index c0354258b9..820d766b41 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -2448,11 +2448,11 @@ static efi_status_t EFIAPI efi_uninstall_multiple_protocol_interfaces( * * Return: status code */ -static efi_status_t EFIAPI efi_calculate_crc32(void *data, - unsigned long data_size, - uint32_t *crc32_p) +static efi_status_t EFIAPI efi_calculate_crc32(const void *data, + efi_uintn_t data_size, + u32 *crc32_p) { - EFI_ENTRY("%p, %ld", data, data_size); + EFI_ENTRY("%p, %zu", data, data_size); *crc32_p = crc32(0, data, data_size); return EFI_EXIT(EFI_SUCCESS); } |