From b9cd0508e75187cba1de7b04cd2b17058fcce121 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 16 Oct 2022 20:34:59 +0800 Subject: [PATCH] boards: Correct xxx_main prototype Signed-off-by: Xiang Xiao --- boards/arm/sama5/sama5d3x-ek/src/nor_main.c | 2 +- boards/arm/sama5/sama5d4-ek/src/at25_main.c | 2 +- boards/arm/sama5/sama5d4-ek/src/dram_main.c | 2 +- boards/z80/ez80/makerlisp/src/sd_main.c | 2 +- boards/z80/ez80/z20x/src/sd_main.c | 2 +- boards/z80/ez80/z20x/src/w25_main.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boards/arm/sama5/sama5d3x-ek/src/nor_main.c b/boards/arm/sama5/sama5d3x-ek/src/nor_main.c index 5a3cc0906c..5342dfe3b0 100644 --- a/boards/arm/sama5/sama5d3x-ek/src/nor_main.c +++ b/boards/arm/sama5/sama5d3x-ek/src/nor_main.c @@ -75,7 +75,7 @@ typedef void (*nor_entry_t)(void); * ****************************************************************************/ -int nor_main(int argc, char *argv) +int nor_main(int argc, char *argv[]) { uint32_t regval; diff --git a/boards/arm/sama5/sama5d4-ek/src/at25_main.c b/boards/arm/sama5/sama5d4-ek/src/at25_main.c index 864d02187b..dc4af61535 100644 --- a/boards/arm/sama5/sama5d4-ek/src/at25_main.c +++ b/boards/arm/sama5/sama5d4-ek/src/at25_main.c @@ -103,7 +103,7 @@ static char g_at25dev[DEVNAME_MAXSIZE]; * ****************************************************************************/ -int at25_main(int argc, char *argv) +int at25_main(int argc, char *argv[]) { struct lib_rawinstream_s rawinstream; struct lib_memsostream_s memoutstream; diff --git a/boards/arm/sama5/sama5d4-ek/src/dram_main.c b/boards/arm/sama5/sama5d4-ek/src/dram_main.c index 52005bd8fe..1af64e2270 100644 --- a/boards/arm/sama5/sama5d4-ek/src/dram_main.c +++ b/boards/arm/sama5/sama5d4-ek/src/dram_main.c @@ -73,7 +73,7 @@ typedef void (*dram_entry_t)(void); * ****************************************************************************/ -int dram_main(int argc, char *argv) +int dram_main(int argc, char *argv[]) { /* Here we have a in memory value we can change in the debugger * to begin booting in NOR Flash diff --git a/boards/z80/ez80/makerlisp/src/sd_main.c b/boards/z80/ez80/makerlisp/src/sd_main.c index 8a1ec40ee8..581b9ae893 100644 --- a/boards/z80/ez80/makerlisp/src/sd_main.c +++ b/boards/z80/ez80/makerlisp/src/sd_main.c @@ -72,7 +72,7 @@ typedef CODE void (*sram_entry_t)(void); * ****************************************************************************/ -int sd_main(int argc, char *argv) +int sd_main(int argc, char *argv[]) { int fd; int ret; diff --git a/boards/z80/ez80/z20x/src/sd_main.c b/boards/z80/ez80/z20x/src/sd_main.c index 7355874595..443480d044 100644 --- a/boards/z80/ez80/z20x/src/sd_main.c +++ b/boards/z80/ez80/z20x/src/sd_main.c @@ -67,7 +67,7 @@ typedef CODE void (*sram_entry_t)(void); * ****************************************************************************/ -int sd_main(int argc, char *argv) +int sd_main(int argc, char *argv[]) { int fd; int ret; diff --git a/boards/z80/ez80/z20x/src/w25_main.c b/boards/z80/ez80/z20x/src/w25_main.c index 71c3c4fa53..138b28a5a0 100644 --- a/boards/z80/ez80/z20x/src/w25_main.c +++ b/boards/z80/ez80/z20x/src/w25_main.c @@ -729,7 +729,7 @@ errout: * ****************************************************************************/ -int w25_main(int argc, char *argv) +int w25_main(int argc, char *argv[]) { bool disable = false; int ret;