projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add UST test binaries to gitignore
[lttng-tools.git]
/
liblttng-ht
/
lttng-ht.c
diff --git
a/liblttng-ht/lttng-ht.c
b/liblttng-ht/lttng-ht.c
index 608b3af10bdbd48180bc7f06fee98fa9e47553c4..74e5ed4feb169cf803d90e7debea78b6c507722f 100644
(file)
--- a/
liblttng-ht/lttng-ht.c
+++ b/
liblttng-ht/lttng-ht.c
@@
-62,7
+62,8
@@
struct lttng_ht *lttng_ht_new(unsigned long size, int type)
struct lttng_ht *ht;
/* Test size */
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) {
ht = zmalloc(sizeof(*ht));
if (ht == NULL) {
@@
-160,7
+161,6
@@
void lttng_ht_lookup(struct lttng_ht *ht, void *key,
{
assert(ht);
assert(ht->ht);
{
assert(ht);
assert(ht->ht);
- assert(key);
cds_lfht_lookup(ht->ht, ht->hash_fct(key, HASH_SEED),
ht->match_fct, key, &iter->iter);
cds_lfht_lookup(ht->ht, ht->hash_fct(key, HASH_SEED),
ht->match_fct, key, &iter->iter);
This page took
0.026882 seconds
and
4
git commands to generate.