summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-08-30 17:03:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-08-31 16:38:14 +0200
commit4e7b7dddebaf836097698574923178eff22a9836 (patch)
tree08710736d00fdd0ab979c79ffbbd64abcec6c613 /src/parser_bison.y
parent407bf4ebb52665fd48ecc163baa1f139e609905a (diff)
src: simplify chain_alloc()
Remove parameter to set the chain name which is only used from netlink path. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index a248b335..4a0c09a2 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -2029,7 +2029,7 @@ table_block : /* empty */ { $$ = $<table>-1; }
chain_block_alloc : /* empty */
{
- $$ = chain_alloc(NULL);
+ $$ = chain_alloc();
if (open_scope(state, &$$->scope) < 0) {
erec_queue(error(&@$, "too many levels of nesting"),
state->msgs);