Fix a few c99isms in unit tests

Change-Id: Iea9ba619e337d5abea7ee791ddf3dd27e0f3e60f
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2019-03-19 15:02:40 -07:00
parent e08dfab9b3
commit 3c009347b1
2 changed files with 5 additions and 2 deletions

View File

@ -90,9 +90,11 @@ void encode_update_test_ref(int m, int k, u8 * g_tbls, u8 ** buffs, u8 * a)
void encode_update_test(int m, int k, u8 * g_tbls, u8 ** perf_update_buffs, u8 * a)
{
int i;
// Make parity vects
ec_init_tables(k, m - k, &a[k * k], g_tbls);
for (int i = 0; i < k; i++) {
for (i = 0; i < k; i++) {
FUNCTION_UNDER_TEST(TEST_LEN(m), k, m - k, i, g_tbls,
perf_update_buffs[i], &perf_update_buffs[k]);
}

View File

@ -2677,10 +2677,11 @@ int create_custom_hufftables(struct isal_hufftables *hufftables_custom, int file
uint8_t *stream = NULL;
struct isal_huff_histogram histogram;
FILE *file;
int i;
memset(&histogram, 0, sizeof(histogram));
for (int i = 0; i < file_count; i++) {
for (i = 0; i < file_count; i++) {
printf("Processing %s\n", files[i]);
file = fopen(files[i], "r");
if (file == NULL) {