diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-17 23:36:25 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-18 19:49:30 -0400 |
commit | 763c7aa288485cf5ab627fe1d25ff58e76f9dacb (patch) | |
tree | 563130863f8763af93df272c0122c76ef25aaba0 /src/shared/macro.h | |
parent | a50d7d4389217c0d3b527ee260eabf89e4a76caa (diff) |
journal,shared: add _cleanup_journal_close_
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 055919048c..90a663b9ce 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -203,6 +203,7 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) { #define _cleanup_set_free_ __attribute__((cleanup(set_freep))) #define _cleanup_set_free_free_ __attribute__((cleanup(set_free_freep))) #define _cleanup_strv_free_ __attribute__((cleanup(strv_freep))) +#define _cleanup_journal_close_ __attribute__((cleanup(journal_closep))) #define VA_FORMAT_ADVANCE(format, ap) \ do { \ |