diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-10-21 21:09:14 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-10-21 21:09:14 +0000 |
commit | 84905b72910637854ded5027c312dd7a94d5df94 (patch) | |
tree | a1c58d345be3986bf0e66fc52315b9775b78831a /sbin/pfctl/parse.y | |
parent | 4aacdcb9c09d3d46709d0ed571d91534f64483f9 (diff) |
don't use NULL as (int)0. henning ok
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 4 |
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"); |