]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
checkpoint
authorMark Andrews <marka@isc.org>
Tue, 30 May 2006 04:18:36 +0000 (04:18 +0000)
committerMark Andrews <marka@isc.org>
Tue, 30 May 2006 04:18:36 +0000 (04:18 +0000)
lib/isc/include/isc/list.h

index 2c987eaad30a4bb44745add2d7ec5c1d26756051..8220522d38e219a498645c405152185edafaba4c 100644 (file)
@@ -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
        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)