tests/periph_eeprom: fix 'results' type

Results type should only be an array of char, not an array of pointers.
This commit is contained in:
Gaëtan Harter 2019-02-12 16:22:44 +01:00
parent 892a37351a
commit c029fcde11
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -224,7 +224,7 @@ static int cmd_test(int argc, char **argv)
size_t ret = eeprom_write(0, (uint8_t *)expected, 4); size_t ret = eeprom_write(0, (uint8_t *)expected, 4);
assert(ret == 4); assert(ret == 4);
char *result[4]; char result[4];
ret = eeprom_read(0, (uint8_t *)result, 4); ret = eeprom_read(0, (uint8_t *)result, 4);
assert(strncmp((const char *)result, (const char *)expected, 4) == 0); assert(strncmp((const char *)result, (const char *)expected, 4) == 0);
assert(ret == 4); assert(ret == 4);