summaryrefslogtreecommitdiff
path: root/conf/confbase.Y
diff options
context:
space:
mode:
Diffstat (limited to 'conf/confbase.Y')
-rw-r--r--conf/confbase.Y4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y
index 522a1803..2343536a 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -25,6 +25,7 @@ CF_DECLS
ip_addr a;
struct symbol *s;
char *t;
+ struct rtable_config *r;
struct f_inst *x;
struct filter *f;
struct f_tree *e;
@@ -78,8 +79,7 @@ expr:
CF_ADDTO(conf, definition)
definition:
DEFINE SYM '=' expr ';' {
- if ($2->class != SYM_VOID) cf_error("Symbol already defined");
- $2->class = SYM_NUMBER;
+ cf_define_symbol($2, SYM_NUMBER, NULL);
$2->aux = $4;
}
;