mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
ISC_LIST_APPENDLIST now clears list2 consistently
This commit is contained in:
@@ -105,9 +105,9 @@
|
|||||||
(list1).tail->link.next = (list2).head; \
|
(list1).tail->link.next = (list2).head; \
|
||||||
(list2).head->link.prev = (list1).tail; \
|
(list2).head->link.prev = (list1).tail; \
|
||||||
(list1).tail = (list2).tail; \
|
(list1).tail = (list2).tail; \
|
||||||
|
} \
|
||||||
(list2).head = NULL; \
|
(list2).head = NULL; \
|
||||||
(list2).tail = NULL; \
|
(list2).tail = NULL; \
|
||||||
} \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define ISC_LIST_ENQUEUE(list, elt, link) ISC_LIST_APPEND(list, elt, link)
|
#define ISC_LIST_ENQUEUE(list, elt, link) ISC_LIST_APPEND(list, elt, link)
|
||||||
|
Reference in New Issue
Block a user