chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / login / inhibit.c
index fbab42aff1713f7f43bfc62ce3b496912c99868f..fe108c6ef011c088ea403af089e5a12d25f91106 100644 (file)
@@ -229,7 +229,7 @@ int main(int argc, char *argv[]) {
         int r, exit_code = 0;
         DBusConnection *bus = NULL;
         DBusError error;
-        int _cleanup_close_ fd = -1;
+        _cleanup_close_ int fd = -1;
 
         dbus_error_init(&error);