Commit c193132c authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/tests/random_seed: eliminate goto

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9b26bf7e
...@@ -43,12 +43,13 @@ int main(void) ...@@ -43,12 +43,13 @@ int main(void)
goto retry; goto retry;
} }
printf("seeds OK\n"); printf("seeds OK\n");
goto next; break;
retry:; retry:;
} }
printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]); if (retry >= 3) {
return 1; printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]);
next:; return 1;
}
} }
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment