From 8b2221b17e0c57e3d81ffc8d9b60b08f0475fd5c Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Tue, 20 Feb 2007 04:06:18 +0000 Subject: use HOST_UP instead of an hard coded integer --- usr.sbin/hoststated/pfe_filter.c | 4 ++-- usr.sbin/relayd/pfe_filter.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin') 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 @@ -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 @@ -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) { -- cgit v1.2.3