summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-20 04:06:18 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-20 04:06:18 +0000
commit8b2221b17e0c57e3d81ffc8d9b60b08f0475fd5c (patch)
treedb055127e543f28c0031dc54db4b193d03c74779 /usr.sbin
parentba0d19ac3e8cb6bbf95bea5d7d76b2c4bea959b5 (diff)
use HOST_UP instead of an hard coded integer
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hoststated/pfe_filter.c4
-rw-r--r--usr.sbin/relayd/pfe_filter.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/pfe_filter.c b/usr.sbin/hoststated/pfe_filter.c
index 6a38260d606..25e3ec43cec 100644
--- a/usr.sbin/hoststated/pfe_filter.c
+++ b/usr.sbin/hoststated/pfe_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe_filter.c,v 1.12 2007/02/08 13:32:24 reyk Exp $ */
+/* $OpenBSD: pfe_filter.c,v 1.13 2007/02/20 04:06:17 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -183,7 +183,7 @@ sync_table(struct hoststated *env, struct service *service, struct table *table)
i = 0;
TAILQ_FOREACH(host, &table->hosts, entry) {
- if (host->up != 1)
+ if (host->up != HOST_UP)
continue;
memset(&(addlist[i]), 0, sizeof(addlist[i]));
switch (host->ss.ss_family) {
diff --git a/usr.sbin/relayd/pfe_filter.c b/usr.sbin/relayd/pfe_filter.c
index 6a38260d606..25e3ec43cec 100644
--- a/usr.sbin/relayd/pfe_filter.c
+++ b/usr.sbin/relayd/pfe_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe_filter.c,v 1.12 2007/02/08 13:32:24 reyk Exp $ */
+/* $OpenBSD: pfe_filter.c,v 1.13 2007/02/20 04:06:17 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -183,7 +183,7 @@ sync_table(struct hoststated *env, struct service *service, struct table *table)
i = 0;
TAILQ_FOREACH(host, &table->hosts, entry) {
- if (host->up != 1)
+ if (host->up != HOST_UP)
continue;
memset(&(addlist[i]), 0, sizeof(addlist[i]));
switch (host->ss.ss_family) {