summaryrefslogtreecommitdiff
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 22:32:39 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 22:49:01 +0200
commit7de96275dd6e3b6997e799413e4537561041e199 (patch)
tree4eab0c018168c14eb22f9e086917d16ef3f8f6a8 /src/LogInit.cxx
parente13d0bf65653550c4cfe3f879441139f5242d8b1 (diff)
ConfigData: use std::string for config_param::value
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r--src/LogInit.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx
index d5e5c1d1f..433eda51a 100644
--- a/src/LogInit.cxx
+++ b/src/LogInit.cxx
@@ -253,7 +253,8 @@ log_init(bool verbose, bool use_stdout, Error &error)
if (verbose)
log_threshold = G_LOG_LEVEL_DEBUG;
else if ((param = config_get_param(CONF_LOG_LEVEL)) != NULL)
- log_threshold = parse_log_level(param->value, param->line);
+ log_threshold = parse_log_level(param->value.c_str(),
+ param->line);
if (use_stdout) {
log_init_stdout();
@@ -272,7 +273,7 @@ log_init(bool verbose, bool use_stdout, Error &error)
return false;
#endif
#ifdef HAVE_SYSLOG
- } else if (strcmp(param->value, "syslog") == 0) {
+ } else if (strcmp(param->value.c_str(), "syslog") == 0) {
log_init_syslog();
return true;
#endif