From 9c25d5e2f13239fc5bd5a6d73778b01f799fe70a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 13 Jun 2024 13:03:38 -0400 Subject: Value argument can be constant --- src/ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ini.c b/src/ini.c index 2d2eb57..decd29f 100644 --- a/src/ini.c +++ b/src/ini.c @@ -16,7 +16,7 @@ void ini_section_init(struct INIFILE **ini) { (*ini)->section = calloc((*ini)->section_count + 1, sizeof(**(*ini)->section)); } -struct INISection *ini_section_search(struct INIFILE **ini, unsigned mode, char *value) { +struct INISection *ini_section_search(struct INIFILE **ini, unsigned mode, const char *value) { struct INISection *result = NULL; for (size_t i = 0; i < (*ini)->section_count; i++) { if ((*ini)->section[i]->key != NULL) { -- cgit