diff options
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc-misc.c | 4 | ||||
-rw-r--r-- | src/librc/rc.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 7b3c3dfa..be911e9f 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -243,9 +243,9 @@ char **rc_config_load (const char *file) } librc_hidden_def(rc_config_load) -char *rc_config_value (char **list, const char *entry) +char *rc_config_value (const char *const *list, const char *entry) { - char *line; + const char *line; int i; char *p; diff --git a/src/librc/rc.h b/src/librc/rc.h index 516d39f0..726d7f98 100644 --- a/src/librc/rc.h +++ b/src/librc/rc.h @@ -359,7 +359,7 @@ char **rc_config_list (const char *file); char **rc_config_load (const char *file); /*! Return the value of the entry from a key=value list. */ -char *rc_config_value (char **list, const char *entry); +char *rc_config_value (const char *const *list, const char *entry); /*! Check if a variable is a boolean and return it's value. * If variable is not a boolean then we set errno to be ENOENT when it does |