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
+2 -2
View File
@@ -426,7 +426,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;
@@ -436,7 +436,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;