diff options
| author | Emilio G. Cota | 2017-07-12 00:48:21 +0200 |
|---|---|---|
| committer | Richard Henderson | 2018-06-15 19:42:55 +0200 |
| commit | 32359d529f30bea8124ed671b2e6a22f22540488 (patch) | |
| tree | 937ee3f60e999574e764bcbf29f4aab1960cfe5b /include/exec | |
| parent | qht: require a default comparison function (diff) | |
| download | qemu-32359d529f30bea8124ed671b2e6a22f22540488.tar.gz qemu-32359d529f30bea8124ed671b2e6a22f22540488.tar.xz qemu-32359d529f30bea8124ed671b2e6a22f22540488.zip | |
qht: return existing entry when qht_insert fails
The meaning of "existing" is now changed to "matches in hash and
ht->cmp result". This is saner than just checking the pointer value.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
