rculfhash: Cast to struct rcu_level * instead of void * (cleanup)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Oct 2011 06:18:30 +0000 (08:18 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Oct 2011 06:18:30 +0000 (08:18 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index 1f6ee71f39ddb05242d87a6b5c744144c7021c98..ca63457b7237288a8b7816efef9bed1aa9c2c3a3 100644 (file)
@@ -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]);
This page took 0.025451 seconds and 4 git commands to generate.