summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-11-23 22:57:54 +0000
committerhenning <henning@openbsd.org>2002-11-23 22:57:54 +0000
commit46f43e74741afc2143d32b04270167b22190a984 (patch)
tree1db89c68bf684c2f747e79c9178e682a4b532bfa
parentMore links (diff)
downloadwireguard-openbsd-46f43e74741afc2143d32b04270167b22190a984.tar.xz
wireguard-openbsd-46f43e74741afc2143d32b04270167b22190a984.zip
KNF
-rw-r--r--sbin/pfctl/parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 52d55c5ead0..b6f8ea86f67 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.207 2002/11/23 18:32:29 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.208 2002/11/23 22:57:54 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2655,7 +2655,7 @@ expand_rule(struct pf_rule *r,
}
TAILQ_INIT(&r->rt_pool.list);
- for (h = rt_pool_hosts; h; h = h->next) {
+ for (h = rt_pool_hosts; h != NULL; h = h->next) {
pa = calloc(1, sizeof(struct pf_pooladdr));
if (pa == NULL) {
yyerror("calloc");
@@ -2755,7 +2755,7 @@ expand_nat(struct pf_nat *n,
n->dst.port_op = dst_port->op;
TAILQ_INIT(&n->rpool.list);
- for (h = rpool_hosts; h; h = h->next) {
+ for (h = rpool_hosts; h != NULL; h = h->next) {
pa = calloc(1, sizeof(struct pf_pooladdr));
if (pa == NULL) {
yyerror("calloc");
@@ -2768,7 +2768,7 @@ expand_nat(struct pf_nat *n,
TAILQ_INIT(&n->rpool.list);
for (h = rpool_hosts; h; h = h->next) {
- pa = calloc(1, sizeof(struct pf_pooladdr));
+ pa = calloc(1, sizeof(struct pf_pooladdr));
if (pa == NULL) {
yyerror("calloc");
error++;
@@ -2846,7 +2846,7 @@ expand_rdr(struct pf_rdr *r, struct node_if *interfaces,
r->daddr = dst_host->addr;
TAILQ_INIT(&r->rpool.list);
- for (h = rpool_hosts; h; h = h->next) {
+ for (h = rpool_hosts; h != NULL; h = h->next) {
pa = calloc(1, sizeof(struct pf_pooladdr));
if (pa == NULL) {
yyerror("calloc");