summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2007-06-03 18:13:59 +0000
committerume <ume@FreeBSD.org>2007-06-03 18:13:59 +0000
commitd25d38de8e2b62fd99ccc80b2d39e994e93031eb (patch)
tree47614449eee3ecd0c9fcca8833656e3571102646
parent1f0b78cb3e02e3e161fed2e61d1cf1d0fb386365 (diff)
downloadFreeBSD-src-d25d38de8e2b62fd99ccc80b2d39e994e93031eb.zip
FreeBSD-src-d25d38de8e2b62fd99ccc80b2d39e994e93031eb.tar.gz
Merge BIND 9.4.1 into main chunk.
MFC after: 2 weeks
-rw-r--r--lib/libc/include/isc/list.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/include/isc/list.h b/lib/libc/include/isc/list.h
index 8a6973a..fef631b 100644
--- a/lib/libc/include/isc/list.h
+++ b/lib/libc/include/isc/list.h
@@ -73,12 +73,16 @@
INSIST(LINKED(elt, link));\
if ((elt)->link.next != NULL) \
(elt)->link.next->link.prev = (elt)->link.prev; \
- else \
+ else { \
+ INSIST((list).tail == (elt)); \
(list).tail = (elt)->link.prev; \
+ } \
if ((elt)->link.prev != NULL) \
(elt)->link.prev->link.next = (elt)->link.next; \
- else \
+ else { \
+ INSIST((list).head == (elt)); \
(list).head = (elt)->link.next; \
+ } \
INIT_LINK_TYPE(elt, link, type); \
} while (0)
#define UNLINK(list, elt, link) \
@@ -117,3 +121,4 @@
#define DEQUEUE(list, elt, link) UNLINK(list, elt, link)
#endif /* LIST_H */
+/*! \file */
OpenPOWER on IntegriCloud