summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-04 03:36:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-09 06:16:14 +0200
commit7879164915659c16b96b4bb5c4a6dca13b793f37 (patch)
treec2d1606c95fb97f68f97555f112e200d2b93b2f3 /src/config.y
parente0f99a4199ade6ca2d2325d1d38a45e4ce403fa1 (diff)
downloadfastd-7879164915659c16b96b4bb5c4a6dca13b793f37.tar
fastd-7879164915659c16b96b4bb5c4a6dca13b793f37.zip
Move fastd_config_t.peers to fastd_context_t.peer_configs
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.y b/src/config.y
index 3d4e96c..3513216 100644
--- a/src/config.y
+++ b/src/config.y
@@ -424,9 +424,9 @@ on_verify: sync_def_async TOK_STRING {
peer: TOK_STRING {
fastd_peer_config_t *peer = fastd_peer_config_new(state->peer_group);
peer->name = fastd_strdup($1->str);
- peer->next = conf.peers;
+ peer->next = ctx.peer_configs;
- conf.peers = peer;
+ ctx.peer_configs = peer;
state->peer = peer;
}
;
@@ -547,8 +547,8 @@ include: TOK_PEER TOK_STRING maybe_as {
if (!fastd_config_read($2->str, state->peer_group, peer, state->depth))
YYERROR;
- peer->next = conf.peers;
- conf.peers = peer;
+ peer->next = ctx.peer_configs;
+ ctx.peer_configs = peer;
}
| TOK_PEERS TOK_FROM TOK_STRING {
fastd_config_add_peer_dir(state->peer_group, $3->str);