summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-21 05:32:51 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-21 05:32:51 +0200
commit48507e6621596b0d5503fad6cd9e0685917603f5 (patch)
tree830af2be7a802fe2d46dab7cda2a576d167f0efb
parent9d58f1dbdb77be332731fb490d0d7f91a5718da8 (diff)
hashmap: allow callers distinguish whether hashmap_put() was a nop or not
-rw-r--r--hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hashmap.c b/hashmap.c
index 2102db8b26..5a993b6e47 100644
--- a/hashmap.c
+++ b/hashmap.c
@@ -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) {