summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2021-03-21 12:33:08 -0400
committerNicolas Pitre <nico@fluxnic.net>2021-03-21 12:33:08 -0400
commite5709866b069fae7a66ff19e2b834cc41add5274 (patch)
treea9fb42c0d884857cf603717af969aaaf734b6c22 /src/conf.c
parentc263186300ff673c0426a86886948fe8502b3e7c (diff)
fix const qualifier warnings
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index 3142bd8..8d08d99 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -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);
}