diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
commit | 5f7791009790dc40f2d76be310ffeab55c242ced (patch) | |
tree | 5e26d9d5f873a76fe61c6403a69ae123b0d57ad3 /src/log.c | |
parent | 80799fa84eb4330083e4de20b87f97beea7d6ba7 (diff) | |
download | mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.gz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.xz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.zip |
conf: const pointers in block get functions
All config_get_block_*() functions should accept constant config_param
pointers.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -219,7 +219,7 @@ parse_log_level(const char *value, unsigned line) void log_init(bool verbose, bool use_stdout) { - struct config_param *param; + const struct config_param *param; g_get_charset(&log_charset); @@ -252,9 +252,8 @@ void log_init(bool verbose, bool use_stdout) if (path == NULL) g_error("error parsing \"%s\" at line %i\n", CONF_LOG_FILE, param->line); - param->value = path; - log_init_file(param->value, param->line); + log_init_file(path, param->line); } } } |