Skip to content

Commit 2e0c8b1

Browse files
committed
loader: Fix compile-time issues in loader.c
Fix a few minor issues in loader.c file when MCUBOOT_VERIFY_IMG_ADDRESS is enabled. Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 606a193 commit 2e0c8b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/bootutil/src/loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static struct image_max_size image_max_sizes[BOOT_IMAGE_NUMBER] = {0};
8686
#endif
8787

8888
/* Valid only for ARM Cortext M */
89-
#define RESET_OFFSET (2 * sizeof(uin32_t))
89+
#define RESET_OFFSET (2 * sizeof(uint32_t))
9090

9191
#if BOOT_MAX_ALIGN > 1024
9292
#define BUF_SZ BOOT_MAX_ALIGN
@@ -982,7 +982,7 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
982982
const uint32_t offset = secondary_hdr->ih_hdr_size + RESET_OFFSET;
983983
BOOT_LOG_DBG("Getting image %d internal addr from offset %u",
984984
BOOT_CURR_IMG(state), offset);
985-
if (flash_area_read(fap, offset, &internal_img_addr, sizeof(internal_img_addr)) != 0)
985+
if (flash_area_read(fap, offset, &internal_img_addr, sizeof(internal_img_addr)) != 0) {
986986
BOOT_LOG_ERR("Failed to read image %d load address", BOOT_CURR_IMG(state));
987987
fih_rc = FIH_NO_BOOTABLE_IMAGE;
988988
goto out;

0 commit comments

Comments
 (0)