mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
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:
parent
e08dfab9b3
commit
3c009347b1
@ -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]);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user