1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/mtd_raw: fix compilation XFA with MTD pointers

This commit is contained in:
Gunar Schorcht 2023-04-12 08:04:44 +02:00
parent a783a159af
commit 61c2259ac7

View File

@ -281,7 +281,7 @@ static int cmd_info(int argc, char **argv)
if (argc < 2) {
printf("mtd devices: %d\n", MTD_NUMOF);
for (int i = 0; i < MTD_NUMOF; ++i) {
for (unsigned i = 0; i < MTD_NUMOF; ++i) {
printf(" -=[ MTD_%d ]=-\n", i);
_print_info(mtd_default_get_dev(i));
}
@ -450,7 +450,7 @@ int main(void)
puts("no MTD device present on the board.");
}
for (int i = 0; i < MTD_NUMOF; ++i) {
for (unsigned i = 0; i < MTD_NUMOF; ++i) {
printf("init MTD_%d… ", i);
mtd_dev_t *dev = mtd_default_get_dev(i);