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/neighbor | |
parent | 9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff) |
ConfigGlobal: eliminate function config_get_next_param()
Diffstat (limited to 'src/neighbor')
-rw-r--r-- | src/neighbor/Glue.cxx | 4 |
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) { |