diff options
author | Max Kellermann <max@duempel.org> | 2014-02-19 23:57:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-20 00:04:23 +0100 |
commit | 008723c62fe9686812758dfffb06d59f998f6204 (patch) | |
tree | 6bb222d69c3e13fc29a6b1ac449b7815944036db /src/Permission.cxx | |
parent | 9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff) | |
download | mpd-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.cxx | 4 |
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); |