diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-28 14:54:44 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 12:18:54 +0100 |
commit | b07ec5a173f285c35661150764562fb78bb6fadd (patch) | |
tree | 28fe94c8ff17b893ea5ddd7b0addb4e9b82ae471 /src/portable/portabled-image.c | |
parent | tmpfiles: define main through macro (diff) | |
download | systemd-b07ec5a173f285c35661150764562fb78bb6fadd.tar.xz systemd-b07ec5a173f285c35661150764562fb78bb6fadd.zip |
machine-image: introduce image_hash_ops and use it
Diffstat (limited to 'src/portable/portabled-image.c')
-rw-r--r-- | src/portable/portabled-image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/portabled-image.c b/src/portable/portabled-image.c index a6b3f52e99..d95845b32a 100644 --- a/src/portable/portabled-image.c +++ b/src/portable/portabled-image.c @@ -16,7 +16,7 @@ static int image_cache_flush(sd_event_source *s, void *userdata) { assert(s); assert(m); - hashmap_clear_with_destructor(m->image_cache, image_unref); + hashmap_clear(m->image_cache); return 0; } @@ -25,7 +25,7 @@ static int manager_image_cache_initialize(Manager *m) { assert(m); - r = hashmap_ensure_allocated(&m->image_cache, &string_hash_ops); + r = hashmap_ensure_allocated(&m->image_cache, &image_hash_ops); if (r < 0) return r; |