diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-27 16:33:28 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 06:34:25 +0100 |
commit | e30f9c972b789152d67ff34fd3bda294d20d1f51 (patch) | |
tree | 2973dc4a7bc6ac455adade1a0f61bac017013d22 /src/basic/static-destruct.h | |
parent | ee05335f43698fc89e0dc733992c6e94b64bc8f3 (diff) | |
download | systemd-e30f9c972b789152d67ff34fd3bda294d20d1f51.tar.gz |
util: define free_func_t
Diffstat (limited to 'src/basic/static-destruct.h')
-rw-r--r-- | src/basic/static-destruct.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/static-destruct.h b/src/basic/static-destruct.h index cad838083f..4a9a40a835 100644 --- a/src/basic/static-destruct.h +++ b/src/basic/static-destruct.h @@ -1,5 +1,6 @@ #pragma once +#include "alloc-util.h" #include "macro.h" /* A framework for registering static variables that shall be freed on shutdown of a process. It's a bit like gcc's @@ -9,7 +10,7 @@ typedef struct StaticDestructor { void *data; - void (*destroy)(void *p); + free_func_t destroy; } StaticDestructor; #define STATIC_DESTRUCTOR_REGISTER(variable, func) \ |