Skip to content

Commit

Permalink
Fix travis old C build
Browse files Browse the repository at this point in the history
  • Loading branch information
willemt committed Jan 29, 2016
1 parent 56f6521 commit 4209c30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raft_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; i<me->num_nodes; i++)
int i;
for (i = 0; i<me->num_nodes; i++)
{
if (me->nodes[i] == node)
continue;
Expand Down

0 comments on commit 4209c30

Please sign in to comment.