summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-03-22 01:41:13 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-03-22 01:41:13 +0000
commitb2dbd43ff71ca4211b790a0791b34cbdbf744ff7 (patch)
tree379513ecfbfaee32e1d60590824f2930055a3bb1 /sys/netinet/if_ether.c
parentb3ef16b3b8c2cf2bb755f8983ee808b8f57e84d1 (diff)
simple replacement of LIST_END with NULL. ok mpi
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 0070d16fd6a..5290899c4e4 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.97 2013/03/07 09:03:16 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.98 2013/03/22 01:41:12 tedu Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -126,8 +126,7 @@ arptimer(void *arg)
s = splsoftnet();
timeout_add_sec(to, arpt_prune);
- for (la = LIST_FIRST(&llinfo_arp); la != LIST_END(&llinfo_arp);
- la = nla) {
+ for (la = LIST_FIRST(&llinfo_arp); la != NULL; la = nla) {
struct rtentry *rt = la->la_rt;
nla = LIST_NEXT(la, la_list);