chiark / gitweb /
hashmap: introduce hash_ops to make struct Hashmap smaller
[elogind.git] / src / shared / locale-util.c
index 8d2c36303631e6a7226a5a0e6e5c7fa5c47d7323..68851ae13d38b0b40f245d859dea979b93e3f386 100644 (file)
@@ -160,7 +160,7 @@ int get_locales(char ***ret) {
         _cleanup_strv_free_ char **l = NULL;
         int r;
 
         _cleanup_strv_free_ char **l = NULL;
         int r;
 
-        locales = set_new(string_hash_func, string_compare_func);
+        locales = set_new(&string_hash_ops);
         if (!locales)
                 return -ENOMEM;
 
         if (!locales)
                 return -ENOMEM;