From 4209c302e4b91b786cafd74fe9c80da05298935e Mon Sep 17 00:00:00 2001 From: Willem Thiart Date: Fri, 29 Jan 2016 15:04:44 +0200 Subject: [PATCH] Fix travis old C build --- src/raft_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/raft_server.c b/src/raft_server.c index 6e5bcd0e..f662a900 100644 --- a/src/raft_server.c +++ b/src/raft_server.c @@ -722,7 +722,8 @@ void raft_remove_node(raft_server_t* me_, raft_node_t* node) new_array = (raft_node_t*)calloc((me->num_nodes - 1), sizeof(raft_node_t*)); new_node = new_array; - for (int i = 0; inum_nodes; i++) + int i; + for (i = 0; inum_nodes; i++) { if (me->nodes[i] == node) continue;