summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.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/ip_carp.c
parentb3ef16b3b8c2cf2bb755f8983ee808b8f57e84d1 (diff)
simple replacement of LIST_END with NULL. ok mpi
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r--sys/netinet/ip_carp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 81cb3eba4c2..1538238e398 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.198 2012/10/08 18:48:25 camield Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.199 2013/03/22 01:41:12 tedu Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1028,8 +1028,7 @@ carp_destroy_vhosts(struct carp_softc *sc)
/* XXX bow out? */
struct carp_vhost_entry *vhe, *nvhe;
- for (vhe = LIST_FIRST(&sc->carp_vhosts);
- vhe != LIST_END(&sc->carp_vhosts); vhe = nvhe) {
+ for (vhe = LIST_FIRST(&sc->carp_vhosts); vhe != NULL; vhe = nvhe) {
nvhe = LIST_NEXT(vhe, vhost_entries);
free(vhe, M_DEVBUF);
}