summaryrefslogtreecommitdiffstats
path: root/sys/dev/wl
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commite87f7a15ad62e1dd25061ddb301662e809692c2c (patch)
tree5f0ba9ebd57fbfd6e13f2b9403d96e9bfae48d8f /sys/dev/wl
parentf3b4fbe35f6e8e9d09f742c114281d8e9984d135 (diff)
downloadFreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.zip
FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.tar.gz
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/dev/wl')
-rw-r--r--sys/dev/wl/if_wl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index e1aec04..67a50d7 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -682,7 +682,7 @@ wlinit(void *xsc)
printf("wl%d: entered wlinit()\n",sc->unit);
#endif
#if defined(__FreeBSD__) && __FreeBSD_version >= 300000
- if (ifp->if_addrhead.tqh_first == (struct ifaddr *)0) {
+ if (TAILQ_FIRST(&ifp->if_addrhead) == (struct ifaddr *)0) {
#else
if (ifp->if_addrlist == (struct ifaddr *)0) {
#endif
@@ -2060,8 +2060,8 @@ wlconfig(int unit)
outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */
outw(PIOR1(base), OFFSET_CU + 8);
#if defined(__FreeBSD__) && __FreeBSD_version >= 300000
- for (ifma = sc->wl_if.if_multiaddrs.lh_first; ifma;
- ifma = ifma->ifma_link.le_next) {
+ for (ifma = LIST_FIRST(&sc->wl_if.if_multiaddrs); ifma;
+ ifma = LIST_NEXT(ifma, ifma_link)) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
OpenPOWER on IntegriCloud