From 46d6ff5ddb198c355a8e6c64bbb2ea39c303d9b4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Feb 2018 18:58:35 +0100 Subject: [PATCH] tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a path Let's make use of our new hash_ops! --- src/basic/mount-util.c | 4 ++-- src/login/logind-acl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index 03e1b9a42..8b480bbeb 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -427,7 +427,7 @@ int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **bl path_kill_slashes(cleaned); - done = set_new(&string_hash_ops); + done = set_new(&path_hash_ops); if (!done) return -ENOMEM; @@ -437,7 +437,7 @@ int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **bl char *x; unsigned long orig_flags; - todo = set_new(&string_hash_ops); + todo = set_new(&path_hash_ops); if (!todo) return -ENOMEM; diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c index d785f67ca..3f355e7ea 100644 --- a/src/login/logind-acl.c +++ b/src/login/logind-acl.c @@ -192,7 +192,7 @@ int devnode_acl_all(struct udev *udev, assert(udev); - nodes = set_new(&string_hash_ops); + nodes = set_new(&path_hash_ops); if (!nodes) return -ENOMEM; -- 2.30.2