Skip to contentSkip to conversation

cluster/cman/daemon commands.c

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

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2008-01-03 06:48:12

Modified files:
cman/daemon : commands.c

Log message:
Fix buffer align. So far this one makes the entire stack run on sparc up to fenced.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.80&r2=1.81

cman/daemon/commands.c +1 -1
@@ -1555,7 +1555,7 @@
 
 void send_transition_msg(int last_memb_count, int first_trans)
 {
-	char buf[sizeof(struct cl_transmsg)+1024];
+	char buf[sizeof(struct cl_transmsg)+1024] __attribute__((aligned(8)));
 	struct cl_transmsg *msg = (struct cl_transmsg *)buf;
 	int len = sizeof(struct cl_transmsg);