photomosaics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 04fb87e1b1b0eada8c80f840cefe7b4186b88052
parent ffb7821da62a5f6852d79889b1a3cd1f527babdf
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Mon, 16 Jan 2023 08:18:31 -0600

Change unchanged string parameter to use `const`

Diffstat:
Mphotomosaics.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/photomosaics.c b/photomosaics.c @@ -257,7 +257,7 @@ static Pixel get_avg_color(unsigned char *pixels, const size_t pixels_column_cnt return p; } -static bool get_resized_pixel_info(char *filename, const size_t width, const size_t height, unsigned char *pixels_out, ExceptionInfo *exception) { +static bool get_resized_pixel_info(const char *filename, const size_t width, const size_t height, unsigned char *pixels_out, ExceptionInfo *exception) { if(!files_inner_cached) { inner_cache_tmp_files = malloc(IMG_LIST_MAX_SIZE * sizeof(char*)); files_inner_cached = malloc(IMG_LIST_MAX_SIZE * sizeof(char*));