From: Lennart Poettering Date: Thu, 8 Feb 2018 17:58:35 +0000 (+0100) Subject: tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a path X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=46d6ff5ddb198c355a8e6c64bbb2ea39c303d9b4;p=elogind.git 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! --- 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;