projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence clang-tidy warnings about atoi(getenv())
[tinc]
/
src
/
list.h
diff --git
a/src/list.h
b/src/list.h
index
e605ce1
..
8bd2f16
100644
(file)
--- a/
src/list.h
+++ b/
src/list.h
@@
-45,10
+45,11
@@
typedef struct list_t {
/* (De)constructors */
/* (De)constructors */
-extern list_t *list_alloc(list_action_t delete) ATTR_MALLOC;
extern void list_free(list_t *list);
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 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 */
/* Insertion and deletion */