element, \
head)) ) \
{ \
- /* insert at head, e;e,emt < head */ \
- GNUNET_CONTAINER_DLL_insert (head, \
+ /* insert at head, element < head */ \
+ GNUNET_CONTAINER_DLL_insert (head, \
tail, \
element); \
} \
pos)) \
break; /* element < pos */ \
if (NULL == pos) /* => element > tail */ \
- GNUNET_CONTAINER_DLL_insert_tail (head, \
+ { \
+ GNUNET_CONTAINER_DLL_insert_tail (head, \
tail, \
element); \
+ } \
else /* prev < element < pos */ \
+ { \
GNUNET_CONTAINER_DLL_insert_after (head, \
tail, \
- element, \
- pos->prev); \
+ pos->prev, \
+ element); \
+ } \
} \
} while (0)