2
0
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:
Andreas Gustafsson
1999-09-08 05:56:21 +00:00
parent 1aeb587095
commit b1a67f989f

View File

@@ -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)