Skip to contentSkip to conversation

cluster/cman/daemon Makefile ais.c

Cluster-devel [email protected] 1 participant 1 message Jan 2, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: pcaulfield at sourceware.org 2008-01-02 10:56:21

Modified files:
cman/daemon : Makefile ais.c

Log message:
Errorstring fixes from Fabio.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.47.2.1&r2=1.47.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.44.2.3&r2=1.44.2.4

cman/daemon/Makefile +1 -1
@@ -15,7 +15,7 @@
 
 include ${top_srcdir}/make/defines.mk
 
-CFLAGS+= -fPIC -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
+CFLAGS+= -I/home/christine/dev/openais-installed/usr/include -fPIC -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
 	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -DOPENAIS_EXTERNAL_SERVICE
 
 ifeq ($(DEBUG),y)
cman/daemon/ais.c +4 -2
@@ -29,6 +29,7 @@
 
 /* openais headers */
 #include <openais/totem/totemip.h>
+//#include <openais/service/objdb.h>
 #include <openais/totem/totempg.h>
 #include <openais/totem/aispoll.h>
 #include <openais/service/service.h>
@@ -60,7 +61,6 @@
 int num_ais_nodes;
 
 static int config_run;
-static char errorstring[512];
 static int startup_pipe;
 static unsigned int debug_mask;
 static int first_trans = 1;
@@ -225,7 +225,7 @@
 	if (error)
 	{
 		write_cman_pipe("Error reading config from CCS");
-		sprintf(errorstring, "Error reading config from CCS");
+		*error_string = "Error reading config from CCS";
 		return -1;
 	}
 
@@ -234,6 +234,8 @@
 
 	config_run = 1;
 
+	*error_string = "Successfully read configuration from CCS";
+
 	return 0;
 }