From 79cacdf30fd344a71d5ef1492cfd49deac9d97ca Mon Sep 17 00:00:00 2001 From: Harkrishn Patro Date: Wed, 29 Jan 2025 23:20:03 +0000 Subject: [PATCH] Fix clang format issue Signed-off-by: Harkrishn Patro --- src/cluster_legacy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index b281af8798..3db4601e48 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -3035,14 +3035,14 @@ static void clusterProcessPublishPacket(clusterMsgDataPublish *publish_data, uin } static void clusterProcessModulePacket(clusterMsgModule *module_data, clusterNode *sender) { - if (!sender) return; /* Protect the module from unknown nodes. */ - /* We need to route this message back to the right module subscribed - * for the right message type. */ - uint64_t module_id = module_data->module_id; /* Endian-safe ID */ - uint32_t len = ntohl(module_data->len); - uint8_t type = module_data->type; - unsigned char *payload = module_data->bulk_data; - moduleCallClusterReceivers(sender->name, module_id, type, payload, len); + if (!sender) return; /* Protect the module from unknown nodes. */ + /* We need to route this message back to the right module subscribed + * for the right message type. */ + uint64_t module_id = module_data->module_id; /* Endian-safe ID */ + uint32_t len = ntohl(module_data->len); + uint8_t type = module_data->type; + unsigned char *payload = module_data->bulk_data; + moduleCallClusterReceivers(sender->name, module_id, type, payload, len); } static void clusterProcessLightPacket(clusterNode *sender, clusterLink *link, uint16_t type) { @@ -4385,7 +4385,7 @@ static clusterMsgSendBlock *createModuleMsgBlock(int64_t module_id, uint8_t type module_data = &hdr->data.module.msg; } - module_data->module_id = module_id; /* Already endian adjusted */ + module_data->module_id = module_id; /* Already endian adjusted */ module_data->type = type; module_data->len = htonl(len); memcpy(module_data->bulk_data, payload, len);