chiark / gitweb /
shared: call va_end in all cases
[elogind.git] / src / shared / macro.h
index df17617b1ebc9c2ccd16533574cf284feca1632a..c7ce7c87d096079fdc1ff0f6c3a60582a2407197 100644 (file)
@@ -189,5 +189,8 @@ 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)))
+#define _cleanup_closedir_ __attribute__((cleanup(closedirp)))
+#define _cleanup_umask_ __attribute__((cleanup(umaskp)))
 
 #include "log.h"