summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-04-21 01:42:19 +0000
committerderaadt <deraadt@openbsd.org>2008-04-21 01:42:19 +0000
commita7a47494f47d609cb99e69d13f308177ec239f77 (patch)
tree024dbe37efd373b68e7e850be8769ba6ba49a0f3
parentallow low level audio drivers to specify a default sample format, (diff)
downloadwireguard-openbsd-a7a47494f47d609cb99e69d13f308177ec239f77.tar.xz
wireguard-openbsd-a7a47494f47d609cb99e69d13f308177ec239f77.zip
optnl is a crutch for those who do not understand yacc. it
leads to a variety of errors; ok mcbride
-rw-r--r--sbin/pfctl/parse.y14
1 files changed, 5 insertions, 9 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index c4189963198..19b361dfcdc 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.536 2008/02/01 06:58:45 mcbride Exp $ */
+/* $OpenBSD: parse.y,v 1.537 2008/04/21 01:42:19 deraadt Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -702,14 +702,10 @@ anchorname : STRING { $$ = $1; }
| /* empty */ { $$ = NULL; }
;
-optnl : optnl '\n'
- |
- ;
-
-pfa_anchorlist : pfrule optnl
- | anchorrule optnl
- | pfa_anchorlist pfrule optnl
- | pfa_anchorlist anchorrule optnl
+pfa_anchorlist : /* empty */
+ | pfa_anchorlist '\n'
+ | pfa_anchorlist pfrule '\n'
+ | pfa_anchorlist anchorrule '\n'
;
pfa_anchor : '{'