]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: use UINT32 as type for PCR indexes
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Mar 2022 09:36:39 +0000 (10:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Mar 2022 16:33:28 +0000 (17:33 +0100)
Thisis what the TPM2/UEFI headers use, and most of our EFI codebase.
Let's also use the same type here in cpio.[ch]

src/boot/efi/cpio.c
src/boot/efi/cpio.h

index 2855c4119be70c4e1d8eb28f3a60f5557a50ca11..a4da4a97fecfeb51b296dd4c1b7fb1629b580f5a 100644 (file)
@@ -311,7 +311,7 @@ EFI_STATUS pack_cpio(
                 const CHAR8 *target_dir_prefix,
                 UINT32 dir_mode,
                 UINT32 access_mode,
-                UINTN tpm_pcr,
+                UINT32 tpm_pcr,
                 const CHAR16 *tpm_description,
                 void **ret_buffer,
                 UINTN *ret_buffer_size) {
index a272d289298322815a8b93b543dfd25389a8bb50..93ee4c431067e58dbd31a7a474bebf99089e6270 100644 (file)
@@ -10,8 +10,7 @@ EFI_STATUS pack_cpio(
                 const CHAR8 *target_dir_prefix,
                 UINT32 dir_mode,
                 UINT32 access_mode,
-                UINTN tpm_pcr,
+                UINT32 tpm_pcr,
                 const CHAR16 *tpm_description,
                 void **ret_buffer,
                 UINTN *ret_buffer_size);
-