chiark / gitweb /
util: make malloc0 ask calloc for one block of size n
[elogind.git] / src / basic / hashmap.c
index 55e198960b03e8a76197e01b50bd162a0013f99f..83c76ae0dd4435ddfcdcdb3feb6ece240466a2e2 100644 (file)
@@ -1455,6 +1455,8 @@ int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key,
         return 0;
 }
 
+/// UNNEEDED by elogind
+#if 0
 int set_remove_and_put(Set *s, const void *old_key, const void *new_key) {
         struct swap_entries swap;
         struct hashmap_base_entry *e;
@@ -1480,6 +1482,7 @@ int set_remove_and_put(Set *s, const void *old_key, const void *new_key) {
 
         return 0;
 }
+#endif // 0
 
 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value) {
         struct swap_entries swap;