Skip to content

Commit

Permalink
declare loop variable at top of function body
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett authored and dgarske committed May 17, 2024
1 parent 9fa8388 commit e823da9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/benchmark/tls_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,10 @@ int DoneHandShake = 0;
static int run_all_CAST(void)
{
int ret = 0;
int cast_idx = 0;

for (int i=0; i<FIPS_CAST_COUNT; i++) {
if ((ret = wc_RunCast_fips(i)) != 0) {
for (cast_idx=0; cast_idx<FIPS_CAST_COUNT; cast_idx++) {
if ((ret = wc_RunCast_fips(cast_idx)) != 0) {
#ifdef NO_ERROR_STRINGS
fprintf(stderr,
"ERROR: FIPS CAST failed with return code: %d\n", ret);
Expand Down

0 comments on commit e823da9

Please sign in to comment.