From 61c2259ac7dcac4ad434f9ea843bab2515f9bbff Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 12 Apr 2023 08:04:44 +0200 Subject: [PATCH] tests/mtd_raw: fix compilation XFA with MTD pointers --- tests/drivers/mtd_raw/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/drivers/mtd_raw/main.c b/tests/drivers/mtd_raw/main.c index feada0ec1f..8f10f9f11c 100644 --- a/tests/drivers/mtd_raw/main.c +++ b/tests/drivers/mtd_raw/main.c @@ -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);