diff options
-rw-r--r-- | include/ini.h | 2 | ||||
-rw-r--r-- | src/ini.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ini.h b/include/ini.h index fa2bd98..022a066 100644 --- a/include/ini.h +++ b/include/ini.h @@ -98,7 +98,7 @@ struct INIFILE *ini_open(const char *filename); * @param value * @return */ -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); /** * @@ -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) { |