chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / shared / utmp-wtmp.c
index 5ee3d22e71e43ea083c876b63d065e14cbfe10df..342e0a9cf1aceefb7dd7313e9da6a5307a2b8781 100644 (file)
@@ -287,7 +287,7 @@ int utmp_put_runlevel(int runlevel, int previous) {
 #define TIMEOUT_MSEC 50
 
 static int write_to_terminal(const char *tty, const char *message) {
-        int _cleanup_close_ fd = -1;
+        _cleanup_close_ int fd = -1;
         const char *p;
         size_t left;
         usec_t end;