summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-05-27 18:41:30 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-05-27 18:41:30 +0000
commit12e63c2ae624606153e87d0007aaacb9b142a48d (patch)
tree16bcc93a3bd104b5f36cc7ff74cb49e7813c7c34 /sbin
parent63feb1723e33b4cef1c778ea584f20820749e7bf (diff)
get rid of shift/reduce conflicts, don't support empty logopts
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index c4a62a84d78..34113c5d32c 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.489 2005/05/27 17:22:40 dhartmei Exp $ */
+/* $OpenBSD: parse.y,v 1.490 2005/05/27 18:41:29 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2034,8 +2034,7 @@ log : LOG { $$ = PF_LOG; }
| LOGALL '(' logopts ')' { $$ = PF_LOG_ALL | $3; }
;
-logopts : /* empty */ { $$ = 0; }
- | logopt { $$ = $1; }
+logopts : logopt { $$ = $1; }
| logopts comma logopt { $$ = $1 | $3; }
logopt : USER { $$ = PF_LOG_SOCKET_LOOKUP; }