diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-17 23:20:00 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-25 16:50:37 -0500 |
commit | 475b84c01a3a12d052e470e6d99e5e9877f78ba1 (patch) | |
tree | 6dd648ae4a3a1e325ffafebc87a595a4ff2d0b52 /src/shared/util.h | |
parent | 6d90157e448a4938aad0bd208c5f192f14b3ef8d (diff) |
Move DEFINE_TRIVIAL_CLEANUP_FUNC to macro.h
This remove the need for various header files to include the
(relatively heavyweight) util.h.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 8b7d37d73c..c672d8dd41 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -322,13 +322,6 @@ static inline void freep(void *p) { free(*(void**) p); } -#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \ - static inline void func##p(type *p) { \ - if (*p) \ - func(*p); \ - } \ - struct __useless_struct_to_allow_trailing_semicolon__ - static inline void closep(int *fd) { safe_close(*fd); } |