mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
hashmap: allow callers distinguish whether hashmap_put() was a nop or not
This commit is contained in:
parent
9d58f1dbdb
commit
48507e6621
@ -217,7 +217,7 @@ int hashmap_put(Hashmap *h, const void *key, void *value) {
|
|||||||
|
|
||||||
link_entry(h, e, hash);
|
link_entry(h, e, hash);
|
||||||
|
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hashmap_replace(Hashmap *h, const void *key, void *value) {
|
int hashmap_replace(Hashmap *h, const void *key, void *value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user