From d36a8086098c1b76c67b7c5ab68bd66f714bcd92 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 6 Jan 2023 20:13:27 +0200 Subject: [PATCH 41/41] Make secfile_insert_filereference() parameters const Both 'filename' and 'path' can and should be const. See osdn #46301 Signed-off-by: Marko Lindqvist --- utility/registry_ini.c | 3 ++- utility/registry_ini.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/utility/registry_ini.c b/utility/registry_ini.c index dca085d9f6..3c9f818870 100644 --- a/utility/registry_ini.c +++ b/utility/registry_ini.c @@ -1394,7 +1394,8 @@ size_t secfile_insert_str_vec_full(struct section_file *secfile, Insert a read-from-a-file string entry **************************************************************************/ struct entry *secfile_insert_filereference(struct section_file *secfile, - char *filename, char *path, ...) + const char *filename, + const char *path, ...) { char fullpath[MAX_LEN_SECPATH]; const char *ent_name; diff --git a/utility/registry_ini.h b/utility/registry_ini.h index 9d80cf1628..93bba172de 100644 --- a/utility/registry_ini.h +++ b/utility/registry_ini.h @@ -388,7 +388,8 @@ size_t secfile_insert_enum_vec_data_full(struct section_file *secfile, ## __VA_ARGS__) struct entry *secfile_insert_filereference(struct section_file *secfile, - char *filename, char *path, ...) + const char *filename, + const char *path, ...) fc__attribute((__format__ (__printf__, 3, 4))); struct entry *secfile_insert_comment(struct section_file *secfile, -- 2.39.0