Skip to content

Commit

Permalink
wolfBoot_get_blob_type: fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Nov 16, 2023
1 parent ee4a70f commit 10b2b29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/wolfboot/wolfboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void wolfBoot_update_trigger(void);
void wolfBoot_success(void);
uint32_t wolfBoot_image_size(uint8_t *image);
uint32_t wolfBoot_get_blob_version(uint8_t *blob);
uint32_t wolfBoot_get_blob_type(uint8_t *blob);
uint16_t wolfBoot_get_blob_type(uint8_t *blob);
uint32_t wolfBoot_get_blob_diffbase_version(uint8_t *blob);

/* Get partition ID from manifest header */
Expand Down
4 changes: 2 additions & 2 deletions src/libwolfboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,9 +1075,9 @@ uint32_t wolfBoot_get_blob_version(uint8_t *blob)
*
* @return The type of the blob, or 0 if the blob is invalid.
*/
uint32_t wolfBoot_get_blob_type(uint8_t *blob)
uint16_t wolfBoot_get_blob_type(uint8_t *blob)
{
uint32_t *volatile type_field = NULL;
uint16_t *volatile type_field = NULL;
uint32_t *magic = NULL;
uint8_t *img_bin = blob;
#if defined(EXT_ENCRYPTED) && defined(MMU)
Expand Down

0 comments on commit 10b2b29

Please sign in to comment.