diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-09-09 23:10:45 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-09-09 23:10:45 +0200 |
commit | d623dfbfc4bfff6958facd49b79fdf32ab48b21e (patch) | |
tree | b39fb7fe33e1e0a57409650fc15c2ce8933f2fa9 | |
parent | 0903137f1b3841c0468ac602d3b344357bdccecb (diff) | |
download | blogc-d623dfbfc4bfff6958facd49b79fdf32ab48b21e.tar.gz blogc-d623dfbfc4bfff6958facd49b79fdf32ab48b21e.tar.bz2 blogc-d623dfbfc4bfff6958facd49b79fdf32ab48b21e.zip |
common: config-parser: use const for trie data
-rw-r--r-- | src/common/config-parser.c | 6 |
1 files 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; |