From: Mathieu Desnoyers Date: Fri, 28 Oct 2011 06:18:30 +0000 (+0200) Subject: rculfhash: Cast to struct rcu_level * instead of void * (cleanup) X-Git-Tag: v0.7.0~43^2~75 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eb631bf261cb0dad1db55ecb8fdda0fe761cf0c9;p=urcu.git rculfhash: Cast to struct rcu_level * instead of void * (cleanup) Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index 1f6ee71..ca63457 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1284,7 +1284,7 @@ void cds_lfht_create_dummy(struct cds_lfht *ht, unsigned long size) for (order = 1; order < get_count_order_ulong(size) + 1; order++) { len = 1UL << (order - 1); if (order <= ht->min_alloc_order) { - ht->t.tbl[order] = (void *)(ht->t.tbl[0]->nodes + len); + ht->t.tbl[order] = (struct rcu_level *) (ht->t.tbl[0]->nodes + len); } else { ht->t.tbl[order] = calloc(1, len * sizeof(struct _cds_lfht_node)); assert(ht->t.tbl[order]);