From e87f7a15ad62e1dd25061ddb301662e809692c2c Mon Sep 17 00:00:00 2001 From: phk 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/sn/if_sn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sn') diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index 2b39024..e9a856d 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -1461,8 +1461,8 @@ sn_getmcf(struct arpcom *ac, u_char *mcf) bzero(mcf, MCFSZ); - for (ifma = ac->ac_if.if_multiaddrs.lh_first; ifma; - ifma = ifma->ifma_link.le_next) { + for (ifma = LIST_FIRST(&ac->ac_if.if_multiaddrs); ifma; + ifma = LIST_NEXT(ifma, ifma_link)) { if (ifma->ifma_addr->sa_family != AF_LINK) return 0; index = smc_crc(LLADDR((struct sockaddr_dl *)ifma->ifma_addr)) & 0x3f; -- cgit v1.1