From: Mathieu Desnoyers Date: Tue, 15 Nov 2011 23:35:28 +0000 (-0500) Subject: rculfhash: add missing braces around iteration macros pos parameter X-Git-Tag: v2.0-pre15~110 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5450ed5091dd727e58b412b6b9a6cb94ae74b609;p=lttng-tools.git rculfhash: add missing braces around iteration macros pos parameter Signed-off-by: Mathieu Desnoyers --- diff --git a/hashtable/rculfhash.h b/hashtable/rculfhash.h index a3a7c7e9c..719cd58f7 100644 --- a/hashtable/rculfhash.h +++ b/hashtable/rculfhash.h @@ -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))