summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-21 01:42:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-21 01:42:20 +0000
commit18bdd5596e34d387beb411af11007879bb3486bc (patch)
treecc980a08b839f1aeaf39983c6e94508ab5b98023 /sbin/pfctl
parent36bf5b189175ea403450119f66c0fc6b0065200b (diff)
optnl is a crutch for those who do not understand yacc. it
leads to a variety of errors; ok mcbride
Diffstat (limited to 'sbin/pfctl')
-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 : '{'