summaryrefslogtreecommitdiff
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-28 11:38:37 +0200
committerMax Kellermann <max@musicpd.org>2016-10-28 11:38:37 +0200
commit5b2b4bf13c73dc88a1b1c43651fb3e2c707227fd (patch)
tree143be3e3f9c16254076ed8c8bc61760d5c5768d1 /src/LogInit.cxx
parent4bd67bc298fa5214eb2572d8a7c04ba0c24ac60b (diff)
config/Param: use CamelCase
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r--src/LogInit.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx
index cc617bdf9..5c8ae709b 100644
--- a/src/LogInit.cxx
+++ b/src/LogInit.cxx
@@ -124,18 +124,16 @@ log_init(bool verbose, bool use_stdout, Error &error)
return true;
#else
- const struct config_param *param;
-
if (verbose)
SetLogThreshold(LogLevel::DEBUG);
- else if ((param = config_get_param(ConfigOption::LOG_LEVEL)) != nullptr)
+ else if (const auto &param = config_get_param(ConfigOption::LOG_LEVEL))
SetLogThreshold(parse_log_level(param->value.c_str(),
param->line));
if (use_stdout) {
return true;
} else {
- param = config_get_param(ConfigOption::LOG_FILE);
+ const auto *param = config_get_param(ConfigOption::LOG_FILE);
if (param == nullptr) {
#ifdef HAVE_SYSLOG
/* no configuration: default to syslog (if