forked from Imagelibrary/rtems
testsuites/samples/fileio: Address missing field initializer warnings
Address missing field initializer warnings. These were rtems_shell_cmd_t or rtems_shell_alias_t declarations with initialization. The initialization was changed to using named fields. Updates #5325.
This commit is contained in:
@@ -1223,17 +1223,17 @@ static int main_usercmd(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static rtems_shell_cmd_t Shell_USERCMD_Command = {
|
static rtems_shell_cmd_t Shell_USERCMD_Command = {
|
||||||
"usercmd", /* name */
|
.name = "usercmd",
|
||||||
"usercmd n1 [n2 [n3...]] # echo arguments", /* usage */
|
.usage = "usercmd n1 [n2 [n3...]] # echo arguments",
|
||||||
"user", /* topic */
|
.topic = "user",
|
||||||
main_usercmd, /* command */
|
.command = main_usercmd,
|
||||||
NULL, /* alias */
|
.alias = NULL,
|
||||||
NULL /* next */
|
.next = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static rtems_shell_alias_t Shell_USERECHO_Alias = {
|
static rtems_shell_alias_t Shell_USERECHO_Alias = {
|
||||||
"usercmd", /* command */
|
.name = "usercmd",
|
||||||
"userecho" /* alias */
|
.alias = "userecho"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user