summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machined.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c
index aac670ba78..71c8189d5f 100644
--- a/src/machine/machined.c
+++ b/src/machine/machined.c
@@ -44,9 +44,9 @@ Manager *manager_new(void) {
if (!m)
return NULL;
- m->machines = hashmap_new(string_hash_func, string_compare_func);
- m->machine_units = hashmap_new(string_hash_func, string_compare_func);
- m->machine_leaders = hashmap_new(trivial_hash_func, trivial_compare_func);
+ m->machines = hashmap_new(&string_hash_ops);
+ m->machine_units = hashmap_new(&string_hash_ops);
+ m->machine_leaders = hashmap_new(NULL);
if (!m->machines || !m->machine_units || !m->machine_leaders) {
manager_free(m);