diff options
author | claudio <claudio@openbsd.org> | 2020-05-08 07:44:17 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2020-05-08 07:44:17 +0000 |
commit | 0ff3d20700bde8a75976e8b526c62222dd056391 (patch) | |
tree | 68d3c354b8291181c968c17529faa1e0f336f506 /usr.sbin/bgpd | |
parent | Just a bit of KNF. (diff) | |
download | wireguard-openbsd-0ff3d20700bde8a75976e8b526c62222dd056391.tar.xz wireguard-openbsd-0ff3d20700bde8a75976e8b526c62222dd056391.zip |
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@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
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 { |