From b4d96caa78eee5cd203d829c4d637b2a839a8955 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Sun, 28 Jul 2024 13:08:09 -0700 Subject: [PATCH] Remove static to avoid compiler warning (#836) --- src/cluster_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 4c0fbec68..ad0b78d71 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -1267,7 +1267,7 @@ void clusterReset(int hard) { /* ----------------------------------------------------------------------------- * CLUSTER communication link * -------------------------------------------------------------------------- */ -static clusterMsgSendBlock *createClusterMsgSendBlock(int type, uint32_t msglen) { +clusterMsgSendBlock *createClusterMsgSendBlock(int type, uint32_t msglen) { uint32_t blocklen = msglen + offsetof(clusterMsgSendBlock, msg); clusterMsgSendBlock *msgblock = zcalloc(blocklen); msgblock->refcount = 1;