From 133b697244d53a990dd7af86b17223baccac4e2f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 7 May 2008 08:08:40 +0000 Subject: do not assume PF_INOUT is 0 in the enum; ok mcbride --- sbin/pfctl/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/pfctl') diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index ed040b159aa..4d287440639 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.539 2008/05/07 07:07:29 markus Exp $ */ +/* $OpenBSD: parse.y,v 1.540 2008/05/07 08:08:39 deraadt Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2407,7 +2407,7 @@ reticmp6spec : STRING { } ; -dir : /* empty */ { $$ = 0; } +dir : /* empty */ { $$ = PF_INOUT; } | IN { $$ = PF_IN; } | OUT { $$ = PF_OUT; } ; -- cgit v1.2.3