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: allow callers distinguish whether hashmap_put() was a nop or not
[elogind.git]
/
hashmap.c
diff --git
a/hashmap.c
b/hashmap.c
index 2102db8b263c79405514a353e4ac60dc207504ce..5a993b6e4761a36ba410c1f9b1cbba7a5de95a58 100644
(file)
--- 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) {