From b11b01463647e517fa4c173f6c456d4d02fb0c79 Mon Sep 17 00:00:00 2001 From: Roshan Khatri Date: Tue, 23 Jul 2024 05:35:42 +0000 Subject: [PATCH] adds statics Signed-off-by: Roshan Khatri --- src/cluster_legacy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 6284178e9d..79292ef149 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -196,19 +196,19 @@ typedef struct { }; } ClusterNodeIterator; -void clusterNodeIterInitAllNodes(ClusterNodeIterator *iter) { +static void clusterNodeIterInitAllNodes(ClusterNodeIterator *iter) { iter->type = ITER_DICT; dictInitSafeIterator(&iter->di, server.cluster->nodes); } -void clusterNodeIterInitMyShard(ClusterNodeIterator *iter) { +static void clusterNodeIterInitMyShard(ClusterNodeIterator *iter) { list *nodes = clusterGetNodesInMyShard(server.cluster->myself); serverAssert(nodes != NULL); iter->type = ITER_LIST; listRewind(nodes, &iter->li); } -clusterNode *clusterNodeIterNext(ClusterNodeIterator *iter) { +static clusterNode *clusterNodeIterNext(ClusterNodeIterator *iter) { switch (iter->type) { case ITER_DICT: { /* Get the next entry in the dictionary */ @@ -230,7 +230,7 @@ clusterNode *clusterNodeIterNext(ClusterNodeIterator *iter) { } } -void clusterNodeIterReset(ClusterNodeIterator *iter) { +static void clusterNodeIterReset(ClusterNodeIterator *iter) { if (iter->type == ITER_DICT) { dictResetIterator(&iter->di); }