struct lttng_ht *ht;
/* Test size */
- size != 0 ? : (size = DEFAULT_HT_SIZE);
+ if (!size)
+ size = DEFAULT_HT_SIZE;
ht = zmalloc(sizeof(*ht));
if (ht == NULL) {
{
assert(ht);
assert(ht->ht);
- assert(key);
cds_lfht_lookup(ht->ht, ht->hash_fct(key, HASH_SEED),
ht->match_fct, key, &iter->iter);