Explorar o código

Use definition instead of magic number.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1763 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=17) %!d(string=hai) anos
pai
achega
cfdb98f18b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exec/totemsrp.c

+ 1 - 1
exec/totemsrp.c

@@ -1534,7 +1534,7 @@ static void deliver_messages_from_recovery_to_regular (struct totemsrp_instance
 				sizeof (struct iovec) * recovery_message_item->iov_len);
 		} else {
 			mcast = recovery_message_item->iovec[0].iov_base;
-			if (mcast->header.encapsulated == 1) {
+			if (mcast->header.encapsulated == MESSAGE_ENCAPSULATED) {
 				/*
 				 * Message is a recovery message encapsulated
 				 * in a new ring message