Skip to content
Snippets Groups Projects
Unverified Commit c029fcde authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

tests/periph_eeprom: fix 'results' type

Results type should only be an array of char, not an array of pointers.
parent 892a3735
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ static int cmd_test(int argc, char **argv) ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment