From 00f777bfc414af1e1384a213adc91ae4ecf6cbdf Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Oct 2018 12:38:35 +0200 Subject: src: pass struct nft_ctx through struct eval_ctx Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 947a3cde..36a98719 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -45,11 +45,8 @@ void parser_init(struct nft_ctx *nft, struct parser_state *state, state->msgs = msgs; state->cmds = cmds; state->scopes[0] = scope_init(&state->top_scope, NULL); - state->ectx.cache = &nft->cache; + state->ectx.nft = nft; state->ectx.msgs = msgs; - state->ectx.nf_sock = nft->nf_sock; - state->ectx.debug_mask = nft->debug_mask; - state->ectx.octx = &nft->output; } static void yyerror(struct location *loc, struct nft_ctx *nft, void *scanner, -- cgit v1.2.3