summaryrefslogtreecommitdiff
path: root/sbin
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
parent4aacdcb9c09d3d46709d0ed571d91534f64483f9 (diff)
don't use NULL as (int)0. henning ok
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y4
-rw-r--r--sbin/pfctl/pfctl_altq.c4
2 files changed, 4 insertions, 4 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");
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index efe92ab9965..2f5b394191c 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.77 2003/08/22 21:50:34 david Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.78 2003/10/21 21:09:13 itojun Exp $ */
/*
* Copyright (c) 2002
@@ -158,7 +158,7 @@ void
print_altq(const struct pf_altq *a, unsigned level, struct node_queue_bw *bw,
struct node_queue_opt *qopts)
{
- if (a->qname[0] != NULL) {
+ if (a->qname[0] != 0) {
print_queue(a, level, bw, 0, qopts);
return;
}