chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: modernize a few functions with automatic cleanup variables
[elogind.git]
/
src
/
shared
/
macro.h
diff --git
a/src/shared/macro.h
b/src/shared/macro.h
index df17617b1ebc9c2ccd16533574cf284feca1632a..eb9a8c0a72c1233247b875cd8e8617b093864bfd 100644
(file)
--- a/
src/shared/macro.h
+++ b/
src/shared/macro.h
@@
-189,5
+189,6
@@
static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
#define _cleanup_free_ __attribute__((cleanup(freep)))
#define _cleanup_fclose_ __attribute__((cleanup(fclosep)))
+#define _cleanup_close_ __attribute__((cleanup(closep)))
#include "log.h"