]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-id128.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / test / test-id128.c
index afdbf1e4b9016329846d77c7fcfdf7e6a62c6321..0a97366b6daa37f930b60dd61c41116d8b3c3948 100644 (file)
@@ -23,7 +23,7 @@ TEST(id128) {
         sd_id128_t id, id2;
         char t[SD_ID128_STRING_MAX], q[SD_ID128_UUID_STRING_MAX];
         _cleanup_free_ char *b = NULL;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
 
         assert_se(sd_id128_randomize(&id) == 0);
         printf("random: %s\n", sd_id128_to_string(id, t));