]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-xattr-util.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / test / test-xattr-util.c
index 02fba3d6ff3165f7ceff4d04aa7d4d79556a2c0e..04d23ef09b267f2fd76b4c9dec58009e2e9fcd47 100644 (file)
@@ -18,7 +18,7 @@
 TEST(getxattr_at_malloc) {
         char t[] = "/var/tmp/xattrtestXXXXXX";
         _cleanup_free_ char *value = NULL;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         const char *x;
         int r;
 
@@ -60,7 +60,7 @@ cleanup:
 }
 
 TEST(getcrtime) {
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         const char *vt;
         usec_t usec, k;
         int r;