From 1c3f5517fabc264d7b37935bd37197cdd68250ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 22:36:13 +0100 Subject: config/Option: convert to strictly-typed enum --- src/neighbor/Glue.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/neighbor/Glue.cxx') diff --git a/src/neighbor/Glue.cxx b/src/neighbor/Glue.cxx index e5d67f962..57383b1d5 100644 --- a/src/neighbor/Glue.cxx +++ b/src/neighbor/Glue.cxx @@ -59,7 +59,7 @@ CreateNeighborExplorer(EventLoop &loop, NeighborListener &listener, bool NeighborGlue::Init(EventLoop &loop, NeighborListener &listener, Error &error) { - for (const config_param *param = config_get_param(CONF_NEIGHBORS); + for (const auto *param = config_get_param(ConfigOption::NEIGHBORS); param != nullptr; param = param->next) { NeighborExplorer *explorer = CreateNeighborExplorer(loop, listener, *param, error); -- cgit v1.2.3