diff options
| author | christos <christos@NetBSD.org> | 2007-01-27 22:26:43 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2007-01-27 22:26:43 +0000 |
| commit | d73eb73dc8548304b29098ef777fed9878418d4e (patch) | |
| tree | bea5594d5b589ef07d78180524f7a8964c6d1df2 /lib/libc/include | |
| parent | 8e42b6c9847a49931efd9fa3f22cdd294a3d52d8 (diff) | |
merge in resolver portion of bind-9.4.0-rc2
Diffstat (limited to 'lib/libc/include')
| -rw-r--r-- | lib/libc/include/isc/list.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/include/isc/list.h b/lib/libc/include/isc/list.h index 489766a9f0d..68d4ef06d1f 100644 --- a/lib/libc/include/isc/list.h +++ b/lib/libc/include/isc/list.h @@ -1,4 +1,4 @@ -/* $NetBSD: list.h,v 1.2 2004/05/20 19:51:55 christos Exp $ */ +/* $NetBSD: list.h,v 1.3 2007/01/27 22:26:43 christos Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -68,12 +68,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 (/*CONSTCOND*/0) #define UNLINK(list, elt, link) \ @@ -112,3 +116,4 @@ #define DEQUEUE(list, elt, link) UNLINK(list, elt, link) #endif /* LIST_H */ +/*! \file */ |
