summaryrefslogtreecommitdiff
path: root/nest/config.Y
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-07-30 14:28:40 +0200
committerMaria Matejka <mq@ucw.cz>2019-07-30 14:28:40 +0200
commit2de1e2062eba66893a36f5a84f922c880ab6c351 (patch)
tree26ec369d8f0eb33a608b4ae29e4407e6e5aa7bab /nest/config.Y
parent48addc88be27c46d83805ec2854bf1b5e0f0ddb3 (diff)
Conf: Fixed symbol redefinition
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/config.Y b/nest/config.Y
index 4c4b6c33..e1a932d4 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -156,7 +156,7 @@ table_sorted:
| SORTED { $$ = 1; }
;
-table: net_type TABLE CF_SYM_VOID table_sorted {
+table: net_type TABLE symbol table_sorted {
struct rtable_config *cf;
cf = rt_new_table($3, $1);
cf->sorted = $4;
@@ -180,7 +180,7 @@ proto_name:
s->proto = this_proto;
this_proto->name = s->name;
}
- | CF_SYM_VOID {
+ | symbol {
cf_define_symbol($1, this_proto->class, proto, this_proto);
this_proto->name = $1->name;
}
@@ -194,7 +194,7 @@ proto_name:
proto_copy_config(this_proto, $2->proto);
}
- | CF_SYM_VOID FROM CF_SYM_KNOWN {
+ | symbol FROM CF_SYM_KNOWN {
if (($3->class != SYM_TEMPLATE) && ($3->class != SYM_PROTO)) cf_error("Template or protocol name expected");
cf_define_symbol($1, this_proto->class, proto, this_proto);