Skip to contentSkip to conversation

cluster/cman/daemon ais.c

Cluster-devel [email protected] 2 participants 3 messages May 3, 2007 – May 4, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-05-03 12:18:02

Modified files:
cman/daemon : ais.c

Log message:
Change unsigned char* to char* for compatibility with openais trunk.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.46&r2=1.47

cman/daemon/ais.c +1 -1
@@ -134,7 +134,7 @@
  * Exports the interface for the service
  */
 static struct openais_service_handler cman_service_handler = {
-	.name		    		= (unsigned char *)"openais CMAN membership service 2.01",
+	.name		    		= (char *)"openais CMAN membership service 2.01",
 	.id			        = CMAN_SERVICE,
 	.flow_control			= OPENAIS_FLOW_CONTROL_NOT_REQUIRED,
 	.lib_exit_fn		       	= cman_exit_fn,
#1 lore raw

Patrick,

openais trunk is broken in this regard. The type should be unsigned char.

Please revert this change - i'll update trunk with the proper typing.

Regards
-steve

Quoted 25 lines · pcaulfield at sourceware.org

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-05-03 12:18:02

Modified files:
cman/daemon : ais.c

Log message:
Change unsigned char* to char* for compatibility with openais trunk.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.46&r2=1.47

cman/daemon/ais.c +1 -1
@@ -134,7 +134,7 @@
  * Exports the interface for the service
  */
 static struct openais_service_handler cman_service_handler = {
-	.name		    		= (unsigned char *)"openais CMAN membership service 2.01",
+	.name		    		= (char *)"openais CMAN membership service 2.01",
 	.id			        = CMAN_SERVICE,
 	.flow_control			= OPENAIS_FLOW_CONTROL_NOT_REQUIRED,
 	.lib_exit_fn		       	= cman_exit_fn,
#2 lore raw

Patrick,

Ignore my last comments.

This change was made for the Solaris port. There appears to be some problem with using unsigned char for strings on that platform.

Regards
-steve

Quoted 37 lines · Steven Dake

Patrick,

openais trunk is broken in this regard. The type should be unsigned char.

Please revert this change - i'll update trunk with the proper typing.

Regards
-steve

Quoted 25 lines · pcaulfield at sourceware.org

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-05-03 12:18:02

Modified files:
cman/daemon : ais.c

Log message:
Change unsigned char* to char* for compatibility with openais trunk.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.46&r2=1.47

cman/daemon/ais.c +1 -1
@@ -134,7 +134,7 @@
  * Exports the interface for the service
  */
 static struct openais_service_handler cman_service_handler = {
-	.name		    		= (unsigned char *)"openais CMAN membership service 2.01",
+	.name		    		= (char *)"openais CMAN membership service 2.01",
 	.id			        = CMAN_SERVICE,
 	.flow_control			= OPENAIS_FLOW_CONTROL_NOT_REQUIRED,
 	.lib_exit_fn		       	= cman_exit_fn,