diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-08 18:58:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-12 11:07:55 +0100 |
commit | 548f69375e05e048549b24118aebcd8a41451691 (patch) | |
tree | b35b92221a4948e736a3eea7b4c6ee1b0bd87660 /src/journal/sd-journal.c | |
parent | 46e16b347f83d809ed3d34f26286f580dfd086ce (diff) | |
download | systemd-548f69375e05e048549b24118aebcd8a41451691.tar.gz |
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!
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 46e2b47344..4df0abe329 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1733,12 +1733,12 @@ static sd_journal *journal_new(int flags, const char *path) { j->path = t; } - j->files = ordered_hashmap_new(&string_hash_ops); + j->files = ordered_hashmap_new(&path_hash_ops); if (!j->files) goto fail; j->files_cache = ordered_hashmap_iterated_cache_new(j->files); - j->directories_by_path = hashmap_new(&string_hash_ops); + j->directories_by_path = hashmap_new(&path_hash_ops); j->mmap = mmap_cache_new(); if (!j->files_cache || !j->directories_by_path || !j->mmap) goto fail; |