summaryrefslogtreecommitdiff
path: root/sbin/pfctl/parse.y
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-10-21 21:09:14 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-10-21 21:09:14 +0000
commit84905b72910637854ded5027c312dd7a94d5df94 (patch)
treea1c58d345be3986bf0e66fc52315b9775b78831a /sbin/pfctl/parse.y
parent4aacdcb9c09d3d46709d0ed571d91534f64483f9 (diff)
don't use NULL as (int)0. henning ok
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index a8f1515109a..0759d033d63 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.416 2003/09/26 21:44:09 cedric Exp $ */
+/* $OpenBSD: parse.y,v 1.417 2003/10/21 21:09:12 itojun Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2732,7 +2732,7 @@ natrule : nataction interface af proto fromto tag redirpool pooltype
memcpy(&r.rpool.key, $8.key,
sizeof(struct pf_poolhashkey));
- if ($9 != NULL) {
+ if ($9 != 0) {
if (r.action != PF_NAT) {
yyerror("the 'static-port' option is "
"only valid with nat rules");