diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2021-03-21 12:33:08 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2021-03-21 12:33:08 -0400 |
commit | e5709866b069fae7a66ff19e2b834cc41add5274 (patch) | |
tree | a9fb42c0d884857cf603717af969aaaf734b6c22 /src/conf.c | |
parent | c263186300ff673c0426a86886948fe8502b3e7c (diff) |
fix const qualifier warnings
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -107,7 +107,7 @@ const char default_config[] = // argument rather than using user_conf_d directly. void store_default_config_values() { - char *line = default_config; + const char *line = default_config; do { parse_str(user_conf_d, line, 0); @@ -166,7 +166,7 @@ char * get_conf_values(char * salida) { // TODO Make this function take a pointer to a dictionary as an // argument rather than using user_conf_d directly. -char * get_conf_value(char * key) { +char * get_conf_value(const char * key) { return get(user_conf_d, key); } @@ -184,6 +184,6 @@ char * get_conf_value(char * key) { // TODO Make this function take a pointer to a dictionary as an // argument rather than using user_conf_d directly. -int get_conf_int(char * key) { +int get_conf_int(const char * key) { return get_int(user_conf_d, key); } |