Fix: incorrect parenthesis in cds_hlist_for_each_entry_safe_2
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 29 Apr 2014 20:01:57 +0000 (22:01 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 29 Apr 2014 20:01:57 +0000 (22:01 +0200)
commit db903109f0031c831e8fdc95cb7197996e53f46d introduced a regression
in cds_hlist_for_each_entry_safe_2(): incorrect parenthesis assign "e"
to 1, rather than assign "e" to the next pointer, and evaluating the
expression to 1 (comma expression).

Reported-by: Daniel Thibault <Daniel.Thibault@drdc-rddc.gc.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/hlist.h

index 462f4937363fa0c137ae8603531ec23399ec7d10..344481133eac2051f4d7ab85e6188f51887e7dd7 100644 (file)
@@ -104,7 +104,7 @@ void cds_hlist_del(struct cds_hlist_node *elem)
                        : cds_hlist_entry((head)->next, __typeof__(*entry), member)); \
                (entry != NULL) && (e = (entry->member.next == NULL ? NULL \
                                        : cds_hlist_entry(entry->member.next, \
-                                               __typeof__(*entry), member), 1)); \
+                                               __typeof__(*entry), member)), 1); \
                entry = e)
 
 #endif /* _KCOMPAT_HLIST_H */
This page took 0.024959 seconds and 4 git commands to generate.