chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hashmap: introduce hash_ops to make struct Hashmap smaller
[elogind.git]
/
src
/
core
/
bus-endpoint.c
diff --git
a/src/core/bus-endpoint.c
b/src/core/bus-endpoint.c
index 8d11974db484e81227de2f781d8598b8b1b85b11..1e8f07eb54c10d9e64887a4bd0afb2e788b43f0f 100644
(file)
--- a/
src/core/bus-endpoint.c
+++ b/
src/core/bus-endpoint.c
@@
-55,7
+55,7
@@
int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess a
return 0;
}
} else {
return 0;
}
} else {
- ep->policy_hash = hashmap_new(
string_hash_func, string_compare_func
);
+ ep->policy_hash = hashmap_new(
&string_hash_ops
);
if (!ep->policy_hash)
return -ENOMEM;
}
if (!ep->policy_hash)
return -ENOMEM;
}