aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-25 16:03:49 +0100
committerMax Kellermann <max@duempel.org>2009-01-25 16:03:49 +0100
commit5f7791009790dc40f2d76be310ffeab55c242ced (patch)
tree5e26d9d5f873a76fe61c6403a69ae123b0d57ad3 /src/log.c
parent80799fa84eb4330083e4de20b87f97beea7d6ba7 (diff)
downloadmpd-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 '')
-rw-r--r--src/log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index 5b878ff4f..e7326517e 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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);
}
}
}