projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sr.ht CI: update FreeBSD and OpenBSD image versions
[tinc]
/
src
/
subnet.h
diff --git
a/src/subnet.h
b/src/subnet.h
index
ad0a8b8
..
6220e58
100644
(file)
--- a/
src/subnet.h
+++ b/
src/subnet.h
@@
-65,8
+65,8
@@
typedef struct subnet_t {
extern splay_tree_t subnet_tree;
extern int subnet_compare(const struct subnet_t *a, const struct subnet_t *b);
extern splay_tree_t subnet_tree;
extern int subnet_compare(const struct subnet_t *a, const struct subnet_t *b);
-extern subnet_t *new_subnet(void) __attribute__((__malloc__));
extern void free_subnet(subnet_t *subnet);
extern void free_subnet(subnet_t *subnet);
+extern subnet_t *new_subnet(void) ATTR_MALLOC ATTR_DEALLOCATOR(free_subnet);
extern void init_subnets(void);
extern void exit_subnets(void);
extern void init_subnet_tree(splay_tree_t *tree);
extern void init_subnets(void);
extern void exit_subnets(void);
extern void init_subnet_tree(splay_tree_t *tree);