From fc2ffbe6040d6630a06229c5c9be77601fb635eb Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 4 Feb 2001 13:13:25 +0000 Subject: Mechanical change to use macro API instead of fondling implementation details. Created with: sed(1) Reviewed by: md5(1) --- sys/dev/ti/if_ti.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ti') diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index cb28d01c4e10..1d52547e29be 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1073,8 +1073,8 @@ static void ti_setmulti(sc) CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1); /* First, zot all the existing filters. */ - while (sc->ti_mc_listhead.slh_first != NULL) { - mc = sc->ti_mc_listhead.slh_first; + while (SLIST_FIRST(&sc->ti_mc_listhead) != NULL) { + mc = SLIST_FIRST(&sc->ti_mc_listhead); ti_del_mcast(sc, &mc->mc_addr); SLIST_REMOVE_HEAD(&sc->ti_mc_listhead, mc_entries); free(mc, M_DEVBUF); -- cgit v1.3