commit 298adbb1d8ac5355e925c69fae5706518c18d8e9 parent 7f6d33372f2fdb17724934e55e363b6d31a1b4fa Author: Florian Dold <florian.dold@gmail.com> Date: Tue, 25 Jun 2013 20:51:44 +0000 documented corner case of dll remove Diffstat:
| M | src/include/gnunet_container_lib.h | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h @@ -999,9 +999,13 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct /** - * Remove an element from a DLL. Assumes - * that head, tail and element are structs - * with prev and next fields. + * Remove an element from a DLL. Assumes that head, tail and + * element point to structs with prev and next fields. + * + * Using the head or tail pointer as the element + * argument does NOT work with this macro. + * Make sure to store head/tail in another pointer + * and use it to remove the head or tail of the list. * * @param head pointer to the head of the DLL * @param tail pointer to the tail of the DLL