From e78b064dcc0c6a0462574ae3193b3d4d24f5fac0 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 22 May 2013 17:19:34 +1000 Subject: recoverd: Whitespace improvements Signed-off-by: Martin Schwenke (This used to be ctdb commit 473cfcb019f0cb4a094bf10397f7414f7923ee57) --- ctdb/server/ctdb_takeover.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ctdb') diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index cf4f150e891..a8ca72182e2 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -1324,7 +1324,7 @@ static bool can_node_host_ip(struct ctdb_context *ctdb, int32_t pnn, return false; } - for (i=0;inum;i++) { + for (i=0; inum; i++) { if (ctdb_same_ip(&ip->addr, &public_ips->ips[i].addr)) { /* yes, this node can serve this public ip */ return true; @@ -1359,7 +1359,7 @@ static int find_takeover_node(struct ctdb_context *ctdb, numnodes = talloc_array_length(ipflags); pnn = -1; - for (i=0;inext,i++) { - tmp_ip->pnn = i%numnodes; + tmp_ip->pnn = i % numnodes; } /* IP failback doesn't make sense with deterministic -- cgit