rculfhash: add missing braces around iteration macros pos parameter
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Nov 2011 23:35:28 +0000 (18:35 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Nov 2011 23:47:59 +0000 (18:47 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
hashtable/rculfhash.h

index a3a7c7e9caecf4c81b7f8c83b1ae514b06947f46..719cd58f7091ee04e58c64b3202ace5838d7cd81 100644 (file)
@@ -367,7 +367,7 @@ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
        for (cds_lfht_first(ht, iter),                                  \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                typeof(*(pos)), member);        \
-                       &pos->member != NULL;                                   \
+                       &(pos)->member != NULL;                                 \
                        cds_lfht_next(ht, iter),                                \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                typeof(*(pos)), member))
@@ -377,7 +377,7 @@ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
 for (cds_lfht_lookup(ht, match, hash, key, iter),              \
                pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                        typeof(*(pos)), member);        \
-               &pos->member != NULL;                                   \
+               &(pos)->member != NULL;                                 \
                cds_lfht_next_duplicate(ht, match, key, iter),          \
                pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                        typeof(*(pos)), member))
This page took 0.037299 seconds and 4 git commands to generate.