]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-sleep.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / test / test-sleep.c
index de64f920d17c6bc2d8b49132d8f659bc206ad3a3..abaae43e7240735267bdbfaa4e21f3588f98a9f2 100644 (file)
@@ -43,7 +43,7 @@ TEST(parse_sleep_config) {
 
 static int test_fiemap_one(const char *path) {
         _cleanup_free_ struct fiemap *fiemap = NULL;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         int r;
 
         log_info("/* %s */", __func__);