diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-06-07 23:30:27 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-06-07 23:30:27 +0000 |
commit | 2f815773aedbad67979f2c2fa149f7b41d4597f8 (patch) | |
tree | ac0d1b07d1df3f95b2de71051a9d89fc5c79f771 /sys/netinet | |
parent | 396c12b15b5bc3869a89e2d194724cd4d35e8e14 (diff) |
Use LIST macros instead of accessing field members directly; jason@ ok
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 5587ff0d68b..f1d84aaceee 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.40 2002/03/27 17:13:47 ian Exp $ */ +/* $OpenBSD: if_ether.c,v 1.41 2002/06/07 23:30:26 aaron Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -119,10 +119,11 @@ arptimer(arg) s = splsoftnet(); timeout_add(to, arpt_prune * hz); - for (la = llinfo_arp.lh_first; la != 0; la = nla) { + for (la = LIST_FIRST(&llinfo_arp); la != LIST_END(&llinfo_arp); + la = nla) { register struct rtentry *rt = la->la_rt; - nla = la->la_list.le_next; + nla = LIST_NEXT(la, la_list); if (rt->rt_expire && rt->rt_expire <= time.tv_sec) arptfree(la); /* timer has expired; clear */ } |