X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flist.h;h=8bd2f168fb87b1285e4ae35a25170fd31699d1a8;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=511b64a4f17ec4eb7b877269597a55e0de025804;hpb=0871c3095151bce6a4031a2662aa51b7193b855c;p=tinc diff --git a/src/list.h b/src/list.h index 511b64a4..8bd2f168 100644 --- a/src/list.h +++ b/src/list.h @@ -45,10 +45,11 @@ typedef struct list_t { /* (De)constructors */ -extern list_t *list_alloc(list_action_t delete) __attribute__((__malloc__)); extern void list_free(list_t *list); -extern list_node_t *list_alloc_node(void); +extern list_t *list_alloc(list_action_t delete) ATTR_MALLOC ATTR_DEALLOCATOR(list_free); + extern void list_free_node(list_t *list, list_node_t *node); +extern list_node_t *list_alloc_node(void) ATTR_MALLOC ATTR_DEALLOCATOR(list_free_node); /* Insertion and deletion */