Procházet zdrojové kódy

totemudpu: Fix weird indentation

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse před 3 měsíci
rodič
revize
c95f9915c5
1 změnil soubory, kde provedl 39 přidání a 41 odebrání
  1. 39 41
      exec/totemudpu.c

+ 39 - 41
exec/totemudpu.c

@@ -336,47 +336,45 @@ static inline void mcast_sendmsg (
 	 */
 	 */
 	if (instance->netif_bind_state == BIND_STATE_REGULAR) {
 	if (instance->netif_bind_state == BIND_STATE_REGULAR) {
 		qb_list_for_each(list, &(instance->member_list)) {
 		qb_list_for_each(list, &(instance->member_list)) {
-			member = qb_list_entry (list,
-				struct totemudpu_member,
-				list);
-				/*
-				 * Do not send multicast message if message is not "flush", member
-				 * is inactive and timeout for sending merge message didn't expired.
-				 */
-				if (only_active && !member->active && !instance->send_merge_detect_message)
-					continue ;
-
-				totemip_totemip_to_sockaddr_convert(&member->member,
-					instance->totem_interface->ip_port, &sockaddr, &addrlen);
-				msg_mcast.msg_name = &sockaddr;
-				msg_mcast.msg_namelen = addrlen;
-				msg_mcast.msg_iov = (void *)&iovec;
-				msg_mcast.msg_iovlen = 1;
-			#ifdef HAVE_MSGHDR_CONTROL
-				msg_mcast.msg_control = 0;
-			#endif
-			#ifdef HAVE_MSGHDR_CONTROLLEN
-				msg_mcast.msg_controllen = 0;
-			#endif
-			#ifdef HAVE_MSGHDR_FLAGS
-				msg_mcast.msg_flags = 0;
-			#endif
-			#ifdef HAVE_MSGHDR_ACCRIGHTS
-				msg_mcast.msg_accrights = NULL;
-			#endif
-			#ifdef HAVE_MSGHDR_ACCRIGHTSLEN
-				msg_mcast.msg_accrightslen = 0;
-			#endif
-
-				/*
-				 * Transmit multicast message
-				 * An error here is recovered by totemsrp
-				 */
-				res = sendmsg (member->fd, &msg_mcast, MSG_NOSIGNAL);
-				if (res < 0) {
-					LOGSYS_PERROR (errno, instance->totemudpu_log_level_debug,
-						"sendmsg(mcast) failed (non-critical)");
-				}
+			member = qb_list_entry (list, struct totemudpu_member, list);
+			/*
+			 * Do not send multicast message if message is not "flush", member
+			 * is inactive and timeout for sending merge message didn't expired.
+			 */
+			if (only_active && !member->active && !instance->send_merge_detect_message)
+				continue ;
+
+			totemip_totemip_to_sockaddr_convert(&member->member,
+				instance->totem_interface->ip_port, &sockaddr, &addrlen);
+			msg_mcast.msg_name = &sockaddr;
+			msg_mcast.msg_namelen = addrlen;
+			msg_mcast.msg_iov = (void *)&iovec;
+			msg_mcast.msg_iovlen = 1;
+		#ifdef HAVE_MSGHDR_CONTROL
+			msg_mcast.msg_control = 0;
+		#endif
+		#ifdef HAVE_MSGHDR_CONTROLLEN
+			msg_mcast.msg_controllen = 0;
+		#endif
+		#ifdef HAVE_MSGHDR_FLAGS
+			msg_mcast.msg_flags = 0;
+		#endif
+		#ifdef HAVE_MSGHDR_ACCRIGHTS
+			msg_mcast.msg_accrights = NULL;
+		#endif
+		#ifdef HAVE_MSGHDR_ACCRIGHTSLEN
+			msg_mcast.msg_accrightslen = 0;
+		#endif
+
+			/*
+			 * Transmit multicast message
+			 * An error here is recovered by totemsrp
+			 */
+			res = sendmsg (member->fd, &msg_mcast, MSG_NOSIGNAL);
+			if (res < 0) {
+				LOGSYS_PERROR (errno, instance->totemudpu_log_level_debug,
+					"sendmsg(mcast) failed (non-critical)");
+			}
 		}
 		}
 
 
 		if (!only_active || instance->send_merge_detect_message) {
 		if (!only_active || instance->send_merge_detect_message) {