From cd18f34923b7d82dc80b3205eee11d2e7f26bdde Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 30 May 2006 04:18:36 +0000 Subject: [PATCH] checkpoint --- lib/isc/include/isc/list.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/isc/include/isc/list.h b/lib/isc/include/isc/list.h index 2c987eaad3..8220522d38 100644 --- a/lib/isc/include/isc/list.h +++ b/lib/isc/include/isc/list.h @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: list.h,v 1.20 2004/03/05 05:10:58 marka Exp $ */ +/* $Id: list.h,v 1.21 2006/05/30 04:18:36 marka Exp $ */ #ifndef ISC_LIST_H #define ISC_LIST_H 1 @@ -90,12 +90,16 @@ do { \ if ((elt)->link.next != NULL) \ (elt)->link.next->link.prev = (elt)->link.prev; \ - else \ + else { \ + ISC_INSIST((list).tail == (elt)); \ (list).tail = (elt)->link.prev; \ + } \ if ((elt)->link.prev != NULL) \ (elt)->link.prev->link.next = (elt)->link.next; \ - else \ + else { \ + ISC_INSIST((list).head == (elt)); \ (list).head = (elt)->link.next; \ + } \ (elt)->link.prev = (type *)(-1); \ (elt)->link.next = (type *)(-1); \ } while (0)