mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Fix some formatting issues
This commit is contained in:
parent
1d9b0abc3f
commit
2bcca4f2ec
1 changed files with 4 additions and 2 deletions
|
|
@ -165,9 +165,11 @@ static int raid_test_par(int nd, int np, size_t size, void **v, void **ref)
|
|||
raid_gen(nd, np, size, t);
|
||||
|
||||
/* compare parity */
|
||||
for (i = 0; i < np; ++i)
|
||||
if (memcmp(t[nd + i], ref[nd + i], size) != 0)
|
||||
for (i = 0; i < np; ++i) {
|
||||
if (memcmp(t[nd + i], ref[nd + i], size) != 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue