ConfigGlobal: eliminate function config_get_next_param()

This commit is contained in:
Max Kellermann
2014-02-19 23:57:55 +01:00
parent 9e0ce23a03
commit 008723c62f
6 changed files with 16 additions and 31 deletions

View File

@@ -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) {