forked from wolfSSL/wolfssl
remove uint from test case and put variable declaration at top of scope
This commit is contained in:
@@ -34252,9 +34252,11 @@ static void test_wolfSSL_Tls13_Key_Logging_test(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check if the keylog file exists */
|
/* check if the keylog file exists */
|
||||||
|
{
|
||||||
char buff[300] = {0};
|
char buff[300] = {0};
|
||||||
int found[4] = {0};
|
int found[4] = {0};
|
||||||
|
int numfnd = 0;
|
||||||
|
int i;
|
||||||
|
|
||||||
fp = XFOPEN("./MyKeyLog.txt", "r");
|
fp = XFOPEN("./MyKeyLog.txt", "r");
|
||||||
|
|
||||||
@@ -34283,12 +34285,12 @@ static void test_wolfSSL_Tls13_Key_Logging_test(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
XFCLOSE(fp);
|
XFCLOSE(fp);
|
||||||
int numfnd = 0;
|
for (i = 0; i < 4; i++) {
|
||||||
for( uint i = 0; i < 4; i++) {
|
|
||||||
if( found[i] != 0)
|
if( found[i] != 0)
|
||||||
numfnd++;
|
numfnd++;
|
||||||
}
|
}
|
||||||
AssertIntEQ(numfnd, 4);
|
AssertIntEQ(numfnd, 4);
|
||||||
|
}
|
||||||
|
|
||||||
printf(resultFmt, passed);
|
printf(resultFmt, passed);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user