chiark / gitweb /
hashmap: introduce hash_ops to make struct Hashmap smaller
[elogind.git] / src / readahead / readahead-collect.c
index 1592cc86784ccae245c1ac0d6979e8a0d37101fe..822a803a41dde0f12fe78ce64c4f1c1718ace899 100644 (file)
@@ -282,7 +282,7 @@ static int collect(const char *root) {
                 goto finish;
         }
 
-        files = hashmap_new(string_hash_func, string_compare_func);
+        files = hashmap_new(&string_hash_ops);
         if (!files) {
                 log_error("Failed to allocate set.");
                 r = -ENOMEM;