diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-04 03:36:46 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-09 06:16:14 +0200 |
commit | 7879164915659c16b96b4bb5c4a6dca13b793f37 (patch) | |
tree | c2d1606c95fb97f68f97555f112e200d2b93b2f3 /src/fastd.c | |
parent | e0f99a4199ade6ca2d2325d1d38a45e4ce403fa1 (diff) | |
download | fastd-7879164915659c16b96b4bb5c4a6dca13b793f37.tar fastd-7879164915659c16b96b4bb5c4a6dca13b793f37.zip |
Move fastd_config_t.peers to fastd_context_t.peer_configs
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |