avutil/tests/random_seed: eliminate goto

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-12-23 03:04:47 +01:00
parent 9b26bf7e2a
commit c193132ce5

View File

@ -43,12 +43,13 @@ int main(void)
goto retry;
}
printf("seeds OK\n");
goto next;
break;
retry:;
}
printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]);
return 1;
next:;
if (retry >= 3) {
printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]);
return 1;
}
}
return 0;
}
}