Skip to content

Commit ec44d3b

Browse files
committed
fix(image_loader): match prototypes with implementations
The image loader header still declared old load_gz_img/load_zstd_img signatures and a non-const load_img path argument, while the implementations already take an explicit destination buffer and const input path. Update the header before reusing load_img from flash.c, so new callers include the actual interface instead of stale prototypes.
1 parent 048d10f commit ec44d3b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/memory/image_loader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#include <stddef.h>
2020

2121

22-
long load_gz_img(const char *filename);
22+
long load_gz_img(const char *filename, uint8_t* load_start, size_t img_size);
2323

24-
long load_zstd_img(const char *filename);
24+
long load_zstd_img(const char *filename, uint8_t* load_start, size_t img_size);
2525

26-
long load_img(char *img_name, const char *which_img, uint8_t* load_start, size_t img_size);
26+
long load_img(const char *img_name, const char *which_img, uint8_t* load_start, size_t img_size);
2727

2828
void fill_memory(const char* img_file, const char* flash_image, const char* cpt_image, int64_t* img_size, int64_t* flash_size);
2929

0 commit comments

Comments
 (0)