[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/rgmanager ChangeLog include/list.h



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione 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

--- cluster/rgmanager/ChangeLog	2007/08/15 18:43:00	1.57
+++ cluster/rgmanager/ChangeLog	2007/08/22 14:02:28	1.58
@@ -1,3 +1,6 @@
+2007-08-22 Fabio M. Di Nitto <fabbione at ubuntu.com>
+	* include/list.h: Fix build with gcc-4.2.
+
 2007-08-15 Lon Hohberger <lhh at redhat.com>
 	* src/utils/clustat.c: Remove uninitialized var & fix logic /
 	spotted by Ryan McCabe
--- cluster/rgmanager/include/list.h	2007/01/26 21:45:46	1.5
+++ cluster/rgmanager/include/list.h	2007/08/22 14:02:28	1.6
@@ -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), \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]