hashmap: allow callers distinguish whether hashmap_put() was a nop or not

This commit is contained in:
Lennart Poettering 2010-04-21 05:32:51 +02:00
parent 9d58f1dbdb
commit 48507e6621

View file

@ -217,7 +217,7 @@ int hashmap_put(Hashmap *h, const void *key, void *value) {
link_entry(h, e, hash);
return 0;
return 1;
}
int hashmap_replace(Hashmap *h, const void *key, void *value) {