diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-21 05:32:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-21 05:32:51 +0200 |
commit | 48507e6621596b0d5503fad6cd9e0685917603f5 (patch) | |
tree | 830af2be7a802fe2d46dab7cda2a576d167f0efb | |
parent | 9d58f1dbdb77be332731fb490d0d7f91a5718da8 (diff) |
hashmap: allow callers distinguish whether hashmap_put() was a nop or not
-rw-r--r-- | hashmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |