summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-05-08 07:44:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-05-08 07:44:18 +0000
commit45b32d8f88404d6764e0502bcdc385701d397c91 (patch)
treedd562f3020260ea3fb341957b5a11aaa8e9a9b1e
parent26ecd83e8c38392aa11146aa860cef93a2cd122a (diff)
Do not use string litterals in the grammar ("{") it is not POSIX compliant
and also not needed. This just needs a char lookup ('{') like it is done in all the other rules with '{'. With this parse.y can be compiled with bison. OK otto@ benno@
-rw-r--r--usr.sbin/bgpd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 9f5df25ba15..a2d98aff687 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.406 2020/04/23 16:13:11 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.407 2020/05/08 07:44:17 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1565,7 +1565,7 @@ peeropts : REMOTEAS as4number {
if (merge_filterset(&r->set, $2) == -1)
YYERROR;
}
- | SET "{" optnl filter_set_l optnl "}" {
+ | SET '{' optnl filter_set_l optnl '}' {
struct filter_rule *r;
struct filter_set *s;
@@ -2352,7 +2352,7 @@ filter_set : /* empty */ { $$ = NULL; }
TAILQ_INIT($$);
TAILQ_INSERT_TAIL($$, $2, entry);
}
- | SET "{" optnl filter_set_l optnl "}" { $$ = $4; }
+ | SET '{' optnl filter_set_l optnl '}' { $$ = $4; }
;
filter_set_l : filter_set_l comma filter_set_opt {