summaryrefslogtreecommitdiff
path: root/sys/net/if_arcsubr.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-12-09 13:09:14 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-12-09 13:09:14 +0000
commit14e9b0fdbfd4bca452c7e94137ddf40ec572b4c3 (patch)
tree99417d616ac3297980976257980f96f693517770 /sys/net/if_arcsubr.c
parentdcfe508c8abacb3ae0585db04662d330d31b2743 (diff)
Use queue.h TAILQ macros instead of accessing members directly.
(And convert a few loops to TAILQ_FOREACH).
Diffstat (limited to 'sys/net/if_arcsubr.c')
-rw-r--r--sys/net/if_arcsubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c
index 08675f34879..6545e38c025 100644
--- a/sys/net/if_arcsubr.c
+++ b/sys/net/if_arcsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_arcsubr.c,v 1.7 2001/06/15 03:38:33 itojun Exp $ */
+/* $OpenBSD: if_arcsubr.c,v 1.8 2001/12/09 13:09:13 jason Exp $ */
/* $NetBSD: if_arcsubr.c,v 1.8 1996/05/07 02:40:29 thorpej Exp $ */
/*
@@ -562,8 +562,7 @@ arc_ifattach(ifp)
log(LOG_ERR,"%s: link address 0 reserved for broadcasts. Please change it and ifconfig %s down up\n",
ifp->if_xname, ifp->if_xname);
}
- for (ifa = ifp->if_addrlist.tqh_first; ifa != 0;
- ifa = ifa->ifa_list.tqe_next)
+ TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
sdl->sdl_family == AF_LINK) {
sdl->sdl_type = IFT_ARCNET;
@@ -572,4 +571,5 @@ arc_ifattach(ifp)
LLADDR(sdl), ifp->if_addrlen);
break;
}
+ }
}