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!
This commit is contained in:
Lennart Poettering
2018-02-12 11:07:55 +01:00
parent 46e16b347f
commit 548f69375e
13 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -2369,7 +2369,7 @@ int unit_show_processes(
if (r < 0)
return r;
cgroups = hashmap_new(&string_hash_ops);
cgroups = hashmap_new(&path_hash_ops);
if (!cgroups)
return -ENOMEM;
+1 -1
View File
@@ -522,7 +522,7 @@ static int mark_symlink_for_removal(
assert(p);
r = set_ensure_allocated(remove_symlinks_to, &string_hash_ops);
r = set_ensure_allocated(remove_symlinks_to, &path_hash_ops);
if (r < 0)
return r;