Skip to contentSkip to conversation

cluster/rgmanager ChangeLog include/list.h

Cluster-devel [email protected] 1 participant 1 message Aug 22, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-08-22 14:02:28

Modified files:
rgmanager : ChangeLog
rgmanager/include: list.h

Log message:
Fix build with gcc-4.2

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.57&r2=1.58
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/list.h.diff?cvsroot=cluster&r1=1.5&r2=1.6

rgmanager/ChangeLog +3 -0
@@ -1,3 +1,6 @@
+2007-08-22 Fabio M. Di Nitto <[email protected]>
+	* include/list.h: Fix build with gcc-4.2.
+
 2007-08-15 Lon Hohberger <[email protected]>
 	* src/utils/clustat.c: Remove uninitialized var & fix logic /
 	spotted by Ryan McCabe
rgmanager/include/list.h +2 -2
@@ -77,14 +77,14 @@
  *   there must be at least one item in the list
  */
 #define list_for(list, curr, cnt) \
-	if (!(cnt=0) && list && *list) \
+	if (!(cnt=0) && *list) \
 		for (curr = *list; \
 		     (cnt == 0) || (curr != *list); \
 		     curr = (void*)le(curr)->le_next, \
 		     cnt++)
 			
 #define list_for_rev(list, curr, cnt) \
-	if (!(cnt=0) && list && *list) \
+	if (!(cnt=0) && *list) \
 		for (curr = (void *)(le(*list)->le_prev); \
 		     (cnt == 0) || ((void *)curr != le(*list)->le_prev); \
 		     curr = (void*)(le(curr)->le_prev), \