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:
@@ -383,9 +383,11 @@ static void load_unix_sockets(void) {
|
||||
|
||||
/* We maintain a cache of the sockets we found in /proc/net/unix to speed things up a little. */
|
||||
|
||||
unix_sockets = set_new(&string_hash_ops);
|
||||
if (!unix_sockets)
|
||||
unix_sockets = set_new(&path_hash_ops);
|
||||
if (!unix_sockets) {
|
||||
log_oom();
|
||||
return;
|
||||
}
|
||||
|
||||
f = fopen("/proc/net/unix", "re");
|
||||
if (!f) {
|
||||
|
||||
Reference in New Issue
Block a user