On Wed, Mar 28, 2018 at 17:33:09 +0100, Alex Bennée wrote: > Emilio G. Cota <c...@braap.org> writes: > > -bool qht_insert(struct qht *ht, void *p, uint32_t hash); > > +void *qht_insert(struct qht *ht, void *p, uint32_t hash); > > Hmm this seems needlessly counter intuitive. I realise the potential > efficiency in overloading success/fail but wouldn't a: > > bool qht_insert(struct qht *ht, void *p, uint32_t hash, void **existing); > > be conceptually nicer?
Good point, fixed in v2. Thanks, E.