bootutil: Fix signed/unsigned comparison in boot_read_enc_key

When MCUBOOT_SWAP_SAVE_ENCTLV is enabled, a comparison between a signed
and an unsigned integer is made in boot_read_enc_key. This might cause a
warning to be emitted at compile-time.

Signed-off-by: Thomas Altenbach <thomas.altenbach@legrand.com>
This commit is contained in:
Thomas Altenbach 2024-05-10 15:21:37 +02:00 committed by Fabio Utzig
parent 8be24f87e3
commit 9ae634f3bf
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ boot_read_enc_key(const struct flash_area *fap, uint8_t slot, struct boot_status
{ {
uint32_t off; uint32_t off;
#if MCUBOOT_SWAP_SAVE_ENCTLV #if MCUBOOT_SWAP_SAVE_ENCTLV
int i; uint32_t i;
#endif #endif
int rc; int rc;