summaryrefslogtreecommitdiffstats
path: root/src/portable/portabled-image.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-28 14:54:44 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-02 12:18:54 +0100
commitb07ec5a173f285c35661150764562fb78bb6fadd (patch)
tree28fe94c8ff17b893ea5ddd7b0addb4e9b82ae471 /src/portable/portabled-image.c
parenttmpfiles: define main through macro (diff)
downloadsystemd-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.c4
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;