From d623dfbfc4bfff6958facd49b79fdf32ab48b21e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 9 Sep 2019 23:10:45 +0200 Subject: common: config-parser: use const for trie data --- src/common/config-parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/config-parser.c b/src/common/config-parser.c index bc4831b..fbb79af 100644 --- a/src/common/config-parser.c +++ b/src/common/config-parser.c @@ -357,7 +357,7 @@ bc_config_list_keys(bc_config_t *config, const char *section) if (config == NULL) return NULL; - bc_configparser_section_t *s = bc_trie_lookup(config->root, section); + const bc_configparser_section_t *s = bc_trie_lookup(config->root, section); if (s == NULL) return NULL; @@ -386,7 +386,7 @@ bc_config_get(bc_config_t *config, const char *section, const char *key) if (config == NULL) return NULL; - bc_configparser_section_t *s = bc_trie_lookup(config->root, section); + const bc_configparser_section_t *s = bc_trie_lookup(config->root, section); if (s == NULL) return NULL; @@ -414,7 +414,7 @@ bc_config_get_list(bc_config_t *config, const char *section) if (config == NULL) return NULL; - bc_configparser_section_t *s = bc_trie_lookup(config->root, section); + const bc_configparser_section_t *s = bc_trie_lookup(config->root, section); if (s == NULL) return NULL; -- cgit v1.2.3-18-g5258