diff --git a/parity.c b/parity.c index b11e24d6..b461aa45 100644 --- a/parity.c +++ b/parity.c @@ -26,13 +26,13 @@ block_off_t parity_resize(struct snapraid_state* state) { - unsigned disk_count = tommy_array_size(&state->diskarr); + unsigned diskmax = tommy_array_size(&state->diskarr); block_off_t parity_block; unsigned i; /* compute the size of the parity file */ parity_block = 0; - for(i=0;idiskarr, i); /* start from the declared size */