From c193132ce590868e68bbdfbb442516c1dfff1fd8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Dec 2016 03:04:47 +0100 Subject: [PATCH] avutil/tests/random_seed: eliminate goto Signed-off-by: Michael Niedermayer --- libavutil/tests/random_seed.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavutil/tests/random_seed.c b/libavutil/tests/random_seed.c index f45e198213..78067dbe41 100644 --- a/libavutil/tests/random_seed.c +++ b/libavutil/tests/random_seed.c @@ -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; - } +}