Skip to content

Commit e823da9

Browse files
bigbrettdgarske
authored andcommitted
declare loop variable at top of function body
1 parent 9fa8388 commit e823da9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/benchmark/tls_bench.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,10 @@ int DoneHandShake = 0;
388388
static int run_all_CAST(void)
389389
{
390390
int ret = 0;
391+
int cast_idx = 0;
391392

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

0 commit comments

Comments
 (0)