summaryrefslogtreecommitdiffstats
path: root/src/test/test-fs-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-08 06:30:31 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-12 13:57:31 +0100
commit057bf780e9d45480fbacdd3b060dbe37b37f9693 (patch)
tree4d610e28b18e2fd36ff68c024619398c3e68bc68 /src/test/test-fs-util.c
parentsd-id128: several cleanups (diff)
downloadsystemd-057bf780e9d45480fbacdd3b060dbe37b37f9693.tar.xz
systemd-057bf780e9d45480fbacdd3b060dbe37b37f9693.zip
sd-id128: make id128_read() or friends return -ENOPKG when the file contents is "uninitialized"
Then, this drops ID128_PLAIN_OR_UNINIT. Also, this renames Id128Format -> Id128FormatFlag, and make it bitfield. Fixes #25634.
Diffstat (limited to 'src/test/test-fs-util.c')
-rw-r--r--src/test/test-fs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c
index 8c4b632ed0..16c6774a65 100644
--- a/src/test/test-fs-util.c
+++ b/src/test/test-fs-util.c
@@ -325,7 +325,7 @@ TEST(chase_symlinks) {
assert_se(fd >= 0);
safe_close(pfd);
- assert_se(id128_read_fd(fd, ID128_PLAIN, &a) >= 0);
+ assert_se(id128_read_fd(fd, ID128_FORMAT_PLAIN, &a) >= 0);
assert_se(sd_id128_get_machine(&b) >= 0);
assert_se(sd_id128_equal(a, b));
}