From eb631bf261cb0dad1db55ecb8fdda0fe761cf0c9 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 28 Oct 2011 08:18:30 +0200 Subject: [PATCH] rculfhash: Cast to struct rcu_level * instead of void * (cleanup) Signed-off-by: Mathieu Desnoyers --- rculfhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.34.1