From 7879164915659c16b96b4bb5c4a6dca13b793f37 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 4 Aug 2014 03:36:46 +0200 Subject: Move fastd_config_t.peers to fastd_context_t.peer_configs --- src/fastd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index e63b204..5d24b9b 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -206,10 +206,10 @@ static inline void on_post_down(void) { */ static void init_peers(void) { fastd_peer_config_t *peer_conf; - for (peer_conf = conf.peers; peer_conf; peer_conf = peer_conf->next) + for (peer_conf = ctx.peer_configs; peer_conf; peer_conf = peer_conf->next) conf.protocol->peer_configure(peer_conf); - for (peer_conf = conf.peers; peer_conf; peer_conf = peer_conf->next) { + for (peer_conf = ctx.peer_configs; peer_conf; peer_conf = peer_conf->next) { bool enable = conf.protocol->peer_check(peer_conf); if (enable && !peer_conf->enabled) -- cgit v1.2.3