fix: error C2059: syntax error at the atInitDef structure.

This commit is contained in:
Jerzy Jamroz
2025-02-12 12:18:54 +01:00
committed by Andrew Johnson
parent 43003ea18a
commit 71e86e51bd

View File

@@ -64,10 +64,12 @@ static struct cmditem *newItem(const char *cmd)
return item;
}
static const iocshArg atInitArg0 = {"command (before iocInit)", iocshArgString};
static const iocshArg *const atInitArgs[] = {&atInitArg0};
static const iocshFuncDef atInitDef = {
"atInit",
1,
(const iocshArg *[]){&(iocshArg){"command (before iocInit)", iocshArgString}},
atInitArgs,
helpMessage};
static void atInitFunc(const iocshArgBuf *args)