chiark / gitweb /
nss-myhostname: ensure that glibc's assert is used
[elogind.git] / src / journal / test-catalog.c
index 21149f18a5519a6394bd6406b47b78f5acaf667f..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);
 
@@ -89,7 +89,6 @@ static const char* database = NULL;
 
 static void test_catalog_update(void) {
         int r;
-        char _cleanup_free_ *path = NULL;
 
         static char name[] = "/tmp/test-catalog.XXXXXX";
         r = mkstemp(name);