summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 95a42d3e..b5229ae1 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1861,7 +1861,8 @@ tableid_spec : family_spec HANDLE NUM
chain_spec : table_spec identifier
{
$$ = $1;
- $$.chain = $2;
+ $$.chain.name = $2;
+ $$.chain.location = @2;
}
;
@@ -1876,7 +1877,8 @@ chainid_spec : table_spec HANDLE NUM
chain_identifier : identifier
{
memset(&$$, 0, sizeof($$));
- $$.chain = $1;
+ $$.chain.name = $1;
+ $$.chain.location = @1;
}
;