chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / journal / test-catalog.c
index c46303589154cec05ffe671e513a6535c6097f8f..987867f0c8b3dfd0dd907c8dc87b1d59e68dca41 100644 (file)
@@ -35,7 +35,7 @@ static void test_import(Hashmap *h, struct strbuf *sb,
                         const char* contents, ssize_t size, int code) {
         int r;
         char name[] = "/tmp/test-catalog.XXXXXX";
-        int _cleanup_close_ fd = mkstemp(name);
+        _cleanup_close_ int fd = mkstemp(name);
         assert(fd >= 0);
         assert_se(write(fd, contents, size) == size);