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/netatalk/aarp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netatalk') diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index 0493870..e75d30a 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -330,7 +330,7 @@ at_aarpinput( struct arpcom *ac, struct mbuf *m) * Since we don't know the net, we just look for the first * phase 1 address on the interface. */ - for (aa = (struct at_ifaddr *)ac->ac_if.if_addrhead.tqh_first; aa; + for (aa = (struct at_ifaddr *)TAILQ_FIRST(&ac->ac_if.if_addrhead); aa; aa = (struct at_ifaddr *)aa->aa_ifa.ifa_link.tqe_next) { if ( AA_SAT( aa )->sat_family == AF_APPLETALK && ( aa->aa_flags & AFA_PHASE2 ) == 0 ) { @@ -526,7 +526,7 @@ aarpprobe( void *arg ) * interface with the same address as we're looking for. If the * net is phase 2, generate an 802.2 and SNAP header. */ - for (aa = (struct at_ifaddr *)ac->ac_if.if_addrhead.tqh_first; aa; + for (aa = (struct at_ifaddr *)TAILQ_FIRST(&ac->ac_if.if_addrhead); aa; aa = (struct at_ifaddr *)aa->aa_ifa.ifa_link.tqe_next) { if ( AA_SAT( aa )->sat_family == AF_APPLETALK && ( aa->aa_flags & AFA_PROBING )) { -- cgit v1.1