aboutsummaryrefslogtreecommitdiffstats
path: root/src/neighbor/Glue.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/neighbor/Glue.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/neighbor/Glue.cxx')
-rw-r--r--src/neighbor/Glue.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/neighbor/Glue.cxx b/src/neighbor/Glue.cxx
index 7e29b8410..fbf25cc8d 100644
--- a/src/neighbor/Glue.cxx
+++ b/src/neighbor/Glue.cxx
@@ -59,8 +59,8 @@ CreateNeighborExplorer(EventLoop &loop, NeighborListener &listener,
bool
NeighborGlue::Init(EventLoop &loop, NeighborListener &listener, Error &error)
{
- const config_param *param = nullptr;
- while ((param = config_get_next_param(CONF_NEIGHBORS, param))) {
+ for (const config_param *param = config_get_param(CONF_NEIGHBORS);
+ param != nullptr; param = param->next) {
NeighborExplorer *explorer =
CreateNeighborExplorer(loop, listener, *param, error);
if (explorer == nullptr) {