summaryrefslogtreecommitdiffstats
path: root/src/test/test-mountpoint-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2025-01-22 03:10:10 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2025-01-23 10:22:53 +0100
commit58f0cd14a0b9f3f489c7dc40f8a73fa58a886c54 (patch)
tree93b5e63dbe852e6b393d3aa30a91745366daf0e2 /src/test/test-mountpoint-util.c
parentremount-fs: use hash ops with destructor (diff)
downloadsystemd-58f0cd14a0b9f3f489c7dc40f8a73fa58a886c54.tar.xz
systemd-58f0cd14a0b9f3f489c7dc40f8a73fa58a886c54.zip
test: use hash ops with destructor
Diffstat (limited to '')
-rw-r--r--src/test/test-mountpoint-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-mountpoint-util.c b/src/test/test-mountpoint-util.c
index c712cd8f2b..32a3b927e5 100644
--- a/src/test/test-mountpoint-util.c
+++ b/src/test/test-mountpoint-util.c
@@ -50,13 +50,13 @@ TEST(mount_propagation_flag) {
TEST(mnt_id) {
_cleanup_fclose_ FILE *f = NULL;
- _cleanup_hashmap_free_free_ Hashmap *h = NULL;
+ _cleanup_hashmap_free_ Hashmap *h = NULL;
char *p;
void *k;
int r;
assert_se(f = fopen("/proc/self/mountinfo", "re"));
- assert_se(h = hashmap_new(&trivial_hash_ops));
+ assert_se(h = hashmap_new(&trivial_hash_ops_value_free));
for (;;) {
_cleanup_free_ char *line = NULL, *path = NULL;