From c752e8780b043c8822be2417cc5596b8f2ad9c0b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 1 Jul 2025 00:45:50 +0200 Subject: Update codebase to use (const) void* and size_t where applicable --- src/img3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/img3.c') diff --git a/src/img3.c b/src/img3.c index a700839..db50703 100644 --- a/src/img3.c +++ b/src/img3.c @@ -402,7 +402,7 @@ static int img3_get_data(img3_file* image, unsigned char** pdata, unsigned int* return 0; } -int img3_stitch_component(const char* component_name, const unsigned char* component_data, unsigned int component_size, const unsigned char* blob, unsigned int blob_size, unsigned char** img3_data, unsigned int *img3_size) +int img3_stitch_component(const char* component_name, const void* component_data, size_t component_size, const void* blob, size_t blob_size, void** img3_data, size_t *img3_size) { img3_file *img3 = NULL; unsigned char* outbuf = NULL; @@ -422,7 +422,7 @@ int img3_stitch_component(const char* component_name, const unsigned char* compo } if (((img3_element_header*)blob)->full_size != blob_size) { - logger(LL_ERROR, "Invalid blob passed for %s IMG3: The size %d embedded in the blob does not match the passed size of %d\n", component_name, ((img3_element_header*)blob)->full_size, blob_size); + logger(LL_ERROR, "Invalid blob passed for %s IMG3: The size %d embedded in the blob does not match the passed size of %zu\n", component_name, ((img3_element_header*)blob)->full_size, blob_size); img3_free(img3); return -1; } -- cgit v1.1-32-gdbae