aboutsummaryrefslogtreecommitdiffstats
path: root/src/Permission.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-19 23:57:55 +0100
committerMax Kellermann <max@duempel.org>2014-02-20 00:04:23 +0100
commit008723c62fe9686812758dfffb06d59f998f6204 (patch)
tree6bb222d69c3e13fc29a6b1ac449b7815944036db /src/Permission.cxx
parent9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff)
downloadmpd-008723c62fe9686812758dfffb06d59f998f6204.tar.gz
mpd-008723c62fe9686812758dfffb06d59f998f6204.tar.xz
mpd-008723c62fe9686812758dfffb06d59f998f6204.zip
ConfigGlobal: eliminate function config_get_next_param()
Diffstat (limited to 'src/Permission.cxx')
-rw-r--r--src/Permission.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Permission.cxx b/src/Permission.cxx
index d2d9d4297..d6c267ab7 100644
--- a/src/Permission.cxx
+++ b/src/Permission.cxx
@@ -92,7 +92,7 @@ void initPermissions(void)
permission_default = PERMISSION_READ | PERMISSION_ADD |
PERMISSION_CONTROL | PERMISSION_ADMIN;
- param = config_get_next_param(CONF_PASSWORD, NULL);
+ param = config_get_param(CONF_PASSWORD);
if (param) {
permission_default = 0;
@@ -115,7 +115,7 @@ void initPermissions(void)
permission_passwords.insert(std::make_pair(std::move(password),
permission));
- } while ((param = config_get_next_param(CONF_PASSWORD, param)));
+ } while ((param = param->next) != nullptr);
}
param = config_get_param(CONF_DEFAULT_PERMS);