summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ef.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-03 11:46:35 +0000
committerphk <phk@FreeBSD.org>2001-02-03 11:46:35 +0000
commit2ef21ddcb983700a744a68bdc09d4328d1af0d71 (patch)
treea063fa63e721ed1696834584b16bd26bb20c74de /sys/net/if_ef.c
parentbd1101e8cf83a9c8de37d4b856fe3eb1abebd4cb (diff)
downloadFreeBSD-src-2ef21ddcb983700a744a68bdc09d4328d1af0d71.zip
FreeBSD-src-2ef21ddcb983700a744a68bdc09d4328d1af0d71.tar.gz
Use <sys/queue.h> macro api rather than fondle its implementation detals.
Created with: /usr/bin/sed Reviewed by: /sbin/md5
Diffstat (limited to 'sys/net/if_ef.c')
-rw-r--r--sys/net/if_ef.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index d56e9c5..17b4a40 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -163,8 +163,8 @@ ef_detach(struct efnet *sc)
if (ifp->if_flags & IFF_RUNNING) {
/* find internet addresses and delete routes */
register struct ifaddr *ifa;
- for (ifa = ifp->if_addrhead.tqh_first; ifa;
- ifa = ifa->ifa_link.tqe_next) {
+ for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa;
+ ifa = TAILQ_NEXT(ifa, ifa_link)) {
rtinit(ifa, (int)RTM_DELETE, 0);
}
}
@@ -518,7 +518,7 @@ ef_load(void)
struct ef_link *efl = NULL;
int error = 0, d;
- for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next) {
+ for (ifp = TAILQ_FIRST(&ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_link)) {
if (ifp->if_type != IFT_ETHER) continue;
EFDEBUG("Found interface %s%d\n", ifp->if_name, ifp->if_unit);
efl = (struct ef_link*)malloc(sizeof(struct ef_link),
OpenPOWER on IntegriCloud