From f519633d0d37b4c875a2ca6ec4d024eeeefa764a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 Oct 2025 12:22:36 -0500 Subject: [PATCH] cpukit/.../shell: Address missing field initializer warnings Address missing field initializer warnings. These were all rtems_shell_cmd_t or rtems_shell_alias_t declarations with initialization. The initialization was changed to using named fields. Updates #5325. --- cpukit/libmisc/shell/main_blksync.c | 12 ++++---- cpukit/libmisc/shell/main_cat.c | 12 ++++---- cpukit/libmisc/shell/main_cd.c | 4 +-- cpukit/libmisc/shell/main_chdir.c | 12 ++++---- cpukit/libmisc/shell/main_chmod.c | 12 ++++---- cpukit/libmisc/shell/main_chroot.c | 12 ++++---- cpukit/libmisc/shell/main_cp.c | 16 ++++++---- cpukit/libmisc/shell/main_cpuuse.c | 12 ++++---- cpukit/libmisc/shell/main_date.c | 12 ++++---- cpukit/libmisc/shell/main_dd.c | 12 ++++---- cpukit/libmisc/shell/main_debugrfs.c | 12 ++++---- cpukit/libmisc/shell/main_df.c | 16 +++++----- cpukit/libmisc/shell/main_dir.c | 4 +-- cpukit/libmisc/shell/main_drvmgr.c | 12 ++++---- cpukit/libmisc/shell/main_echo.c | 12 ++++---- cpukit/libmisc/shell/main_edit.c | 12 ++++---- cpukit/libmisc/shell/main_exit.c | 4 +-- cpukit/libmisc/shell/main_getenv.c | 12 ++++---- cpukit/libmisc/shell/main_halt.c | 12 ++++---- cpukit/libmisc/shell/main_hexdump.c | 19 +++++++----- cpukit/libmisc/shell/main_i2cdetect.c | 2 +- cpukit/libmisc/shell/main_i2cset.c | 2 +- cpukit/libmisc/shell/main_id.c | 12 ++++---- cpukit/libmisc/shell/main_ln.c | 12 ++++---- cpukit/libmisc/shell/main_logoff.c | 12 ++++---- cpukit/libmisc/shell/main_ls.c | 16 ++++++---- cpukit/libmisc/shell/main_mallocinfo.c | 12 ++++---- cpukit/libmisc/shell/main_md5.c | 12 ++++---- cpukit/libmisc/shell/main_mdump.c | 39 ++++++++++++------------- cpukit/libmisc/shell/main_medit.c | 12 ++++---- cpukit/libmisc/shell/main_mfill.c | 12 ++++---- cpukit/libmisc/shell/main_mkdir.c | 12 ++++---- cpukit/libmisc/shell/main_mknod.c | 12 ++++---- cpukit/libmisc/shell/main_mkrfs.c | 12 ++++---- cpukit/libmisc/shell/main_mmove.c | 12 ++++---- cpukit/libmisc/shell/main_mount.c | 12 ++++---- cpukit/libmisc/shell/main_msdosfmt.c | 24 +++++++-------- cpukit/libmisc/shell/main_mv.c | 12 ++++---- cpukit/libmisc/shell/main_pci.c | 12 ++++---- cpukit/libmisc/shell/main_perioduse.c | 12 ++++---- cpukit/libmisc/shell/main_pwd.c | 12 ++++---- cpukit/libmisc/shell/main_rm.c | 12 ++++---- cpukit/libmisc/shell/main_rmdir.c | 12 ++++---- cpukit/libmisc/shell/main_rtems.c | 18 ++++++------ cpukit/libmisc/shell/main_rtrace.c | 12 ++++---- cpukit/libmisc/shell/main_setenv.c | 12 ++++---- cpukit/libmisc/shell/main_sleep.c | 12 ++++---- cpukit/libmisc/shell/main_stackuse.c | 12 ++++---- cpukit/libmisc/shell/main_top.c | 12 ++++---- cpukit/libmisc/shell/main_tty.c | 12 ++++---- cpukit/libmisc/shell/main_umask.c | 12 ++++---- cpukit/libmisc/shell/main_unmount.c | 12 ++++---- cpukit/libmisc/shell/main_unsetenv.c | 12 ++++---- cpukit/libmisc/shell/main_whoami.c | 12 ++++---- cpukit/libmisc/shell/main_wkspaceinfo.c | 12 ++++---- cpukit/libmisc/shell/shell_script.c | 12 ++++---- 56 files changed, 351 insertions(+), 341 deletions(-) diff --git a/cpukit/libmisc/shell/main_blksync.c b/cpukit/libmisc/shell/main_blksync.c index 9d937b8c60..e6fc92d67e 100644 --- a/cpukit/libmisc/shell/main_blksync.c +++ b/cpukit/libmisc/shell/main_blksync.c @@ -88,10 +88,10 @@ static int rtems_shell_main_blksync( } rtems_shell_cmd_t rtems_shell_BLKSYNC_Command = { - "blksync", /* name */ - "blksync driver # sync the block driver", /* usage */ - "files", /* topic */ - rtems_shell_main_blksync, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "blksync", + .usage = "blksync driver # sync the block driver", + .topic = "files", + .command = rtems_shell_main_blksync, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_cat.c b/cpukit/libmisc/shell/main_cat.c index adaf792855..26623a0cde 100644 --- a/cpukit/libmisc/shell/main_cat.c +++ b/cpukit/libmisc/shell/main_cat.c @@ -70,10 +70,10 @@ static int rtems_shell_main_cat(int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_CAT_Command = { - "cat", /* name */ - "cat n1 [n2 [n3...]] # show the ascii contents", /* usage */ - "files", /* topic */ - rtems_shell_main_cat , /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "cat", + .usage = "cat n1 [n2 [n3...]] # show the ascii contents", + .topic = "files", + .command = rtems_shell_main_cat , + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_cd.c b/cpukit/libmisc/shell/main_cd.c index 37b35db619..14c3e4f73b 100644 --- a/cpukit/libmisc/shell/main_cd.c +++ b/cpukit/libmisc/shell/main_cd.c @@ -40,6 +40,6 @@ #include "internal.h" rtems_shell_alias_t rtems_shell_CD_Alias = { - "chdir", /* command */ - "cd" /* alias */ + .name = "chdir", + .alias = "cd" }; diff --git a/cpukit/libmisc/shell/main_chdir.c b/cpukit/libmisc/shell/main_chdir.c index 434514871f..f4140cf748 100644 --- a/cpukit/libmisc/shell/main_chdir.c +++ b/cpukit/libmisc/shell/main_chdir.c @@ -64,10 +64,10 @@ static int rtems_shell_main_chdir( } rtems_shell_cmd_t rtems_shell_CHDIR_Command = { - "chdir", /* name */ - "chdir [dir] # change the current directory", /* usage */ - "files", /* topic */ - rtems_shell_main_chdir, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "chdir", + .usage = "chdir [dir] # change the current directory", + .topic = "files", + .command = rtems_shell_main_chdir, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index fd09f32049..15f4e3d5d0 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_chmod.c @@ -83,10 +83,10 @@ static int rtems_shell_main_chmod( } rtems_shell_cmd_t rtems_shell_CHMOD_Command = { - "chmod", /* name */ - "chmod 0777 n1 n2... # change filemode", /* usage */ - "files", /* topic */ - rtems_shell_main_chmod, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "chmod", + .usage = "chmod 0777 n1 n2... # change filemode", + .topic = "files", + .command = rtems_shell_main_chmod, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_chroot.c b/cpukit/libmisc/shell/main_chroot.c index 6ed3dc7125..1eda3296e3 100644 --- a/cpukit/libmisc/shell/main_chroot.c +++ b/cpukit/libmisc/shell/main_chroot.c @@ -63,10 +63,10 @@ static int rtems_shell_main_chroot( } rtems_shell_cmd_t rtems_shell_CHROOT_Command = { - "chroot", /* name */ - "chroot [dir] # change the root directory", /* usage */ - "files", /* topic */ - rtems_shell_main_chroot, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "chroot", + .usage = "chroot [dir] # change the root directory", + .topic = "files", + .command = rtems_shell_main_chroot, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_cp.c b/cpukit/libmisc/shell/main_cp.c index 1a85ea947b..3fdc8bb350 100644 --- a/cpukit/libmisc/shell/main_cp.c +++ b/cpukit/libmisc/shell/main_cp.c @@ -581,12 +581,16 @@ mastercmp(const FTSENT **a, const FTSENT **b) return (0); } +/* + * This command internally defines a macro with the same name. + */ +#undef usage rtems_shell_cmd_t rtems_shell_CP_Command = { - "cp", /* name */ - "cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target", /* usage */ - "files", /* topic */ - rtems_shell_main_cp, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "cp", + .usage = "cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target", + .topic = "files", + .command = rtems_shell_main_cp, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_cpuuse.c b/cpukit/libmisc/shell/main_cpuuse.c index 27fd78c0fe..8c02e94bd5 100644 --- a/cpukit/libmisc/shell/main_cpuuse.c +++ b/cpukit/libmisc/shell/main_cpuuse.c @@ -76,10 +76,10 @@ static int rtems_shell_main_cpuuse( } rtems_shell_cmd_t rtems_shell_CPUUSE_Command = { - "cpuuse", /* name */ - "[-r] print or reset per thread cpu usage", /* usage */ - "rtems", /* topic */ - rtems_shell_main_cpuuse, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "cpuuse", + .usage = "[-r] print or reset per thread cpu usage", + .topic = "rtems", + .command = rtems_shell_main_cpuuse, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c index 6d4e446eb9..c4ba697e04 100644 --- a/cpukit/libmisc/shell/main_date.c +++ b/cpukit/libmisc/shell/main_date.c @@ -92,10 +92,10 @@ static int rtems_shell_main_date( } rtems_shell_cmd_t rtems_shell_DATE_Command = { - "date", /* name */ - "date [YYYY-MM-DD HH:MM:SS]", /* usage */ - "misc", /* topic */ - rtems_shell_main_date, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "date", + .usage = "date [YYYY-MM-DD HH:MM:SS]", + .topic = "misc", + .command = rtems_shell_main_date, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_dd.c b/cpukit/libmisc/shell/main_dd.c index 93cd4cc8f5..0c80281bf8 100644 --- a/cpukit/libmisc/shell/main_dd.c +++ b/cpukit/libmisc/shell/main_dd.c @@ -577,10 +577,10 @@ dd_out(rtems_shell_dd_globals* globals, int force) } rtems_shell_cmd_t rtems_shell_DD_Command = { - "dd", /* name */ - "dd [OPERAND]...", /* usage */ - "files", /* topic */ - rtems_shell_main_dd, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "dd", + .usage = "dd [OPERAND]...", + .topic = "files", + .command = rtems_shell_main_dd, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_debugrfs.c b/cpukit/libmisc/shell/main_debugrfs.c index ea055b619f..2018e36ecd 100644 --- a/cpukit/libmisc/shell/main_debugrfs.c +++ b/cpukit/libmisc/shell/main_debugrfs.c @@ -51,10 +51,10 @@ #define OPTIONS "[-h]" rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command = { - "debugrfs", /* name */ - "debugrfs " OPTIONS, /* usage */ - "files", /* topic */ - rtems_shell_debugrfs, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "debugrfs", + .usage = "debugrfs " OPTIONS, + .topic = "files", + .command = rtems_shell_debugrfs, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_df.c b/cpukit/libmisc/shell/main_df.c index aebeee1fac..683237b0b4 100644 --- a/cpukit/libmisc/shell/main_df.c +++ b/cpukit/libmisc/shell/main_df.c @@ -153,12 +153,12 @@ static int rtems_shell_main_df(int argc, char **argv) rtems_shell_cmd_t rtems_shell_DF_Command = { - "df", /* name */ - "[-hB]\n" - " -h human-readable output\n" - " -B scale sizes by SIZE before printing them\n", /* usage */ - "files", /* topic */ - rtems_shell_main_df, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "df", + .usage = "[-hB]\n" + " -h human-readable output\n" + " -B scale sizes by SIZE before printing them\n", + .topic = "files", + .command = rtems_shell_main_df, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_dir.c b/cpukit/libmisc/shell/main_dir.c index 741120aa6a..cd80be7d1e 100644 --- a/cpukit/libmisc/shell/main_dir.c +++ b/cpukit/libmisc/shell/main_dir.c @@ -40,6 +40,6 @@ #include "internal.h" rtems_shell_alias_t rtems_shell_DIR_Alias = { - "ls", /* command */ - "dir" /* alias */ + .name = "ls", + .alias = "dir" }; diff --git a/cpukit/libmisc/shell/main_drvmgr.c b/cpukit/libmisc/shell/main_drvmgr.c index d5a1608022..95e0eb7d0c 100644 --- a/cpukit/libmisc/shell/main_drvmgr.c +++ b/cpukit/libmisc/shell/main_drvmgr.c @@ -459,10 +459,10 @@ static int rtems_shell_main_drvmgr( } rtems_shell_cmd_t rtems_shell_DRVMGR_Command = { - "drvmgr", /* name */ - drvmgr_usage_str, /* usage */ - "system", /* topic */ - rtems_shell_main_drvmgr, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "drvmgr", + .usage = drvmgr_usage_str, + .topic = "system", + .command = rtems_shell_main_drvmgr, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_echo.c b/cpukit/libmisc/shell/main_echo.c index b2fe8d0c65..6e161bcb8c 100644 --- a/cpukit/libmisc/shell/main_echo.c +++ b/cpukit/libmisc/shell/main_echo.c @@ -130,10 +130,10 @@ static int rtems_shell_main_echo( } rtems_shell_cmd_t rtems_shell_ECHO_Command = { - "echo", /* name */ - "echo [args]", /* usage */ - "misc", /* topic */ - rtems_shell_main_echo, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "echo", + .usage = "echo [args]", + .topic = "misc", + .command = rtems_shell_main_echo, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c index 8317452b7b..f2a4d5bb87 100644 --- a/cpukit/libmisc/shell/main_edit.c +++ b/cpukit/libmisc/shell/main_edit.c @@ -2259,10 +2259,10 @@ static int rtems_shell_main_edit(int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_EDIT_Command = { - "edit", /* name */ - "edit [file ...]", /* usage */ - "files", /* topic */ - rtems_shell_main_edit, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "edit", + .usage = "edit [file ...]", + .topic = "files", + .command = rtems_shell_main_edit, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_exit.c b/cpukit/libmisc/shell/main_exit.c index d2c05c8e12..fae7e0c31c 100644 --- a/cpukit/libmisc/shell/main_exit.c +++ b/cpukit/libmisc/shell/main_exit.c @@ -40,6 +40,6 @@ #include "internal.h" rtems_shell_alias_t rtems_shell_EXIT_Alias = { - "logoff", /* command */ - "exit" /* alias */ + .name = "logoff", + .alias = "exit" }; diff --git a/cpukit/libmisc/shell/main_getenv.c b/cpukit/libmisc/shell/main_getenv.c index 2e258e90b7..66e254d6f4 100644 --- a/cpukit/libmisc/shell/main_getenv.c +++ b/cpukit/libmisc/shell/main_getenv.c @@ -69,10 +69,10 @@ static int rtems_shell_main_getenv(int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_GETENV_Command = { - "getenv", /* name */ - "getenv [var]", /* usage */ - "misc", /* topic */ - rtems_shell_main_getenv, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "getenv", + .usage = "getenv [var]", + .topic = "misc", + .command = rtems_shell_main_getenv, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_halt.c b/cpukit/libmisc/shell/main_halt.c index 4c5d49c410..bd669001b4 100644 --- a/cpukit/libmisc/shell/main_halt.c +++ b/cpukit/libmisc/shell/main_halt.c @@ -52,10 +52,10 @@ static int rtems_shell_main_shutdown( } rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command = { - "shutdown", /* name */ - "shutdown", /* usage */ - "rtems", /* topic */ - rtems_shell_main_shutdown, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "shutdown", + .usage = "shutdown", + .topic = "rtems", + .command = rtems_shell_main_shutdown, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_hexdump.c b/cpukit/libmisc/shell/main_hexdump.c index 6673910746..4e3fc4ac34 100644 --- a/cpukit/libmisc/shell/main_hexdump.c +++ b/cpukit/libmisc/shell/main_hexdump.c @@ -158,13 +158,18 @@ main_hexdump(rtems_shell_hexdump_globals* globals, int argc, char *argv[]) return exitval; } +/* + * This command internally defines a macro with the same name. + */ +#undef next +#undef usage rtems_shell_cmd_t rtems_shell_HEXDUMP_Command = { - "hexdump", /* name */ - "hexdump [-bcCdovx] [-e fmt] [-f fmt_file] [-n length]\n" /* usage */ - " [-s skip] [file ...]", - "files", /* topic */ - rtems_shell_main_hexdump, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "hexdump", + .usage = "hexdump [-bcCdovx] [-e fmt] [-f fmt_file] [-n length]\n" + " [-s skip] [file ...]", + .topic = "files", + .command = rtems_shell_main_hexdump, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_i2cdetect.c b/cpukit/libmisc/shell/main_i2cdetect.c index 7092e59f24..044f812cbd 100644 --- a/cpukit/libmisc/shell/main_i2cdetect.c +++ b/cpukit/libmisc/shell/main_i2cdetect.c @@ -103,5 +103,5 @@ rtems_shell_cmd_t rtems_shell_I2CDETECT_Command = { .name = "i2cdetect", .usage = rtems_i2cdetect_shell_usage, .topic = "misc", - .command = rtems_i2cdetect_shell_main, + .command = rtems_i2cdetect_shell_main }; diff --git a/cpukit/libmisc/shell/main_i2cset.c b/cpukit/libmisc/shell/main_i2cset.c index 2cd3263aa6..9e709c6cd7 100644 --- a/cpukit/libmisc/shell/main_i2cset.c +++ b/cpukit/libmisc/shell/main_i2cset.c @@ -120,5 +120,5 @@ rtems_shell_cmd_t rtems_shell_I2CSET_Command = { .name = "i2cset", .usage = rtems_i2cset_shell_usage, .topic = "misc", - .command = rtems_i2cset_shell_main, + .command = rtems_i2cset_shell_main }; diff --git a/cpukit/libmisc/shell/main_id.c b/cpukit/libmisc/shell/main_id.c index 380a504465..fe9e85ea7e 100644 --- a/cpukit/libmisc/shell/main_id.c +++ b/cpukit/libmisc/shell/main_id.c @@ -76,10 +76,10 @@ static int rtems_shell_main_id( } rtems_shell_cmd_t rtems_shell_ID_Command = { - "id", /* name */ - "show uid, gid, euid, and egid", /* usage */ - "misc", /* topic */ - rtems_shell_main_id, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "id", + .usage = "show uid", + .topic = "misc", + .command = rtems_shell_main_id, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_ln.c b/cpukit/libmisc/shell/main_ln.c index c1c09d3965..4c9369fd7a 100644 --- a/cpukit/libmisc/shell/main_ln.c +++ b/cpukit/libmisc/shell/main_ln.c @@ -302,10 +302,10 @@ usage(rtems_shell_ln_globals* globals) } rtems_shell_cmd_t rtems_shell_LN_Command = { - "ln", /* name */ - "ln ln [-fhinsv] source_file [target_file]", /* usage */ - "files", /* topic */ - rtems_shell_main_ln, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "ln", + .usage = "ln ln [-fhinsv] source_file [target_file]", + .topic = "files", + .command = rtems_shell_main_ln, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_logoff.c b/cpukit/libmisc/shell/main_logoff.c index 6819f89007..cfa0458b4d 100644 --- a/cpukit/libmisc/shell/main_logoff.c +++ b/cpukit/libmisc/shell/main_logoff.c @@ -57,10 +57,10 @@ static int rtems_shell_main_logoff( } rtems_shell_cmd_t rtems_shell_LOGOFF_Command = { - "logoff", /* name */ - "logoff from the system", /* usage */ - "misc", /* topic */ - rtems_shell_main_logoff, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "logoff", + .usage = "logoff from the system", + .topic = "misc", + .command = rtems_shell_main_logoff, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_ls.c b/cpukit/libmisc/shell/main_ls.c index 4c69d74c13..7e8edab68c 100644 --- a/cpukit/libmisc/shell/main_ls.c +++ b/cpukit/libmisc/shell/main_ls.c @@ -771,11 +771,15 @@ mastercmp_listdir(const FTSENT **a, const FTSENT **b) return (sortfcn(*a, *b)); } +/* + * This command internally defines a macro with the same name. + */ +#undef usage rtems_shell_cmd_t rtems_shell_LS_Command = { - "ls", /* name */ - "ls [dir] # list files in the directory", /* usage */ - "files", /* topic */ - rtems_shell_main_ls, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "ls", + .usage = "ls [dir] # list files in the directory", + .topic = "files", + .command = rtems_shell_main_ls, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mallocinfo.c b/cpukit/libmisc/shell/main_mallocinfo.c index a51429f917..9ca1edc5f2 100644 --- a/cpukit/libmisc/shell/main_mallocinfo.c +++ b/cpukit/libmisc/shell/main_mallocinfo.c @@ -66,11 +66,11 @@ static int rtems_shell_main_malloc_info( } rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command = { - "malloc", /* name */ - "malloc [walk]", /* usage */ - "mem", /* topic */ - rtems_shell_main_malloc_info, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "malloc", + .usage = "malloc [walk]", + .topic = "mem", + .command = rtems_shell_main_malloc_info, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_md5.c b/cpukit/libmisc/shell/main_md5.c index b82eb8342a..b9a5575f6e 100644 --- a/cpukit/libmisc/shell/main_md5.c +++ b/cpukit/libmisc/shell/main_md5.c @@ -127,10 +127,10 @@ static int rtems_shell_main_md5( } rtems_shell_cmd_t rtems_shell_MD5_Command = { - "md5", /* name */ - "md5 [file ...]", /* usage */ - "files", /* topic */ - rtems_shell_main_md5, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "md5", + .usage = "md5 [file ...]", + .topic = "files", + .command = rtems_shell_main_md5, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mdump.c b/cpukit/libmisc/shell/main_mdump.c index 511e08f766..dc89068d8c 100644 --- a/cpukit/libmisc/shell/main_mdump.c +++ b/cpukit/libmisc/shell/main_mdump.c @@ -224,33 +224,30 @@ void mdumpC(void* addr, int m) printf("%c", isprint(pb[n]) ? pb[n] : '.'); } - rtems_shell_cmd_t rtems_shell_MDUMP_Command = { - "mdump", /* name */ - "mdump [address [length [size]]]", /* usage */ - "mem", /* topic */ - rtems_shell_main_mdump, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mdump", + .usage = "mdump [address [length [size]]]", + .topic = "mem", + .command = rtems_shell_main_mdump, + .alias = NULL, + .next = NULL }; - rtems_shell_cmd_t rtems_shell_WDUMP_Command = { - "wdump", /* name */ - "wdump [address [length]]", /* usage */ - "mem", /* topic */ - rtems_shell_main_wdump, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "wdump", + .usage = "wdump [address [length]]", + .topic = "mem", + .command = rtems_shell_main_wdump, + .alias = NULL, + .next = NULL }; - rtems_shell_cmd_t rtems_shell_LDUMP_Command = { - "ldump", /* name */ - "ldump [address [length]]", /* usage */ - "mem", /* topic */ - rtems_shell_main_ldump, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "ldump", + .usage = "ldump [address [length]]", + .topic = "mem", + .command = rtems_shell_main_ldump, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_medit.c b/cpukit/libmisc/shell/main_medit.c index 6a46d52432..89f810ac51 100644 --- a/cpukit/libmisc/shell/main_medit.c +++ b/cpukit/libmisc/shell/main_medit.c @@ -91,10 +91,10 @@ static const char rtems_medit_shell_usage[] = "\tValues must not exceed 255 or 0xff\n"; rtems_shell_cmd_t rtems_shell_MEDIT_Command = { - "medit", /* name */ - rtems_medit_shell_usage, /* usage */ - "mem", /* topic */ - rtems_shell_main_medit, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "medit", + .usage = rtems_medit_shell_usage, + .topic = "mem", + .command = rtems_shell_main_medit, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mfill.c b/cpukit/libmisc/shell/main_mfill.c index b4d6f476ad..258fa562ba 100644 --- a/cpukit/libmisc/shell/main_mfill.c +++ b/cpukit/libmisc/shell/main_mfill.c @@ -87,10 +87,10 @@ static int rtems_shell_main_mfill( } rtems_shell_cmd_t rtems_shell_MFILL_Command = { - "mfill", /* name */ - "mfill address size value", /* usage */ - "mem", /* topic */ - rtems_shell_main_mfill, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mfill", + .usage = "mfill address size value", + .topic = "mem", + .command = rtems_shell_main_mfill, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mkdir.c b/cpukit/libmisc/shell/main_mkdir.c index 22f9c634a2..4dfcd493e7 100644 --- a/cpukit/libmisc/shell/main_mkdir.c +++ b/cpukit/libmisc/shell/main_mkdir.c @@ -65,10 +65,10 @@ static int rtems_shell_main_mkdir( } rtems_shell_cmd_t rtems_shell_MKDIR_Command = { - "mkdir", /* name */ - "mkdir dir # make a directory", /* usage */ - "files", /* topic */ - rtems_shell_main_mkdir, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mkdir", + .usage = "mkdir dir # make a directory", + .topic = "files", + .command = rtems_shell_main_mkdir, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mknod.c b/cpukit/libmisc/shell/main_mknod.c index 41b0997b24..72ffe1ee10 100644 --- a/cpukit/libmisc/shell/main_mknod.c +++ b/cpukit/libmisc/shell/main_mknod.c @@ -454,10 +454,10 @@ major_from_name(const char *name, mode_t mode) #endif rtems_shell_cmd_t rtems_shell_MKNOD_Command = { - "mknod", /* name */ - "mknod mknod [-rR] [-F fmt] [-m mode] name [c | b] minor", /* usage */ - "files", /* topic */ - rtems_shell_main_mknod, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mknod", + .usage = "mknod mknod [-rR] [-F fmt] [-m mode] name [c | b] minor", + .topic = "files", + .command = rtems_shell_main_mknod, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mkrfs.c b/cpukit/libmisc/shell/main_mkrfs.c index 0a2566c689..ddd5ae0b43 100644 --- a/cpukit/libmisc/shell/main_mkrfs.c +++ b/cpukit/libmisc/shell/main_mkrfs.c @@ -51,10 +51,10 @@ #define OPTIONS "[-v] [-s blksz] [-b grpblk] [-i grpinode] [-I] [-o %inode]" rtems_shell_cmd_t rtems_shell_MKRFS_Command = { - "mkrfs", /* name */ - "mkrfs " OPTIONS " dev", /* usage */ - "files", /* topic */ - rtems_shell_rfs_format, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mkrfs", + .usage = "mkrfs " OPTIONS " dev", + .topic = "files", + .command = rtems_shell_rfs_format, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mmove.c b/cpukit/libmisc/shell/main_mmove.c index f310a61ba3..3959061190 100644 --- a/cpukit/libmisc/shell/main_mmove.c +++ b/cpukit/libmisc/shell/main_mmove.c @@ -87,10 +87,10 @@ static int rtems_shell_main_mmove( } rtems_shell_cmd_t rtems_shell_MMOVE_Command = { - "mmove", /* name */ - "mmove dst src length", /* usage */ - "mem", /* topic */ - rtems_shell_main_mmove, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mmove", + .usage = "mmove dst src length", + .topic = "mem", + .command = rtems_shell_main_mmove, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mount.c b/cpukit/libmisc/shell/main_mount.c index 97d39015f4..3691c4d628 100644 --- a/cpukit/libmisc/shell/main_mount.c +++ b/cpukit/libmisc/shell/main_mount.c @@ -145,10 +145,10 @@ static int rtems_shell_main_mount( } rtems_shell_cmd_t rtems_shell_MOUNT_Command = { - "mount", /* name */ - "mount [-t type] [-r] [-L] [-o options] source target", /* usage */ - "files", /* topic */ - rtems_shell_main_mount, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mount", + .usage = "mount [-t type] [-r] [-L] [-o options] source target", + .topic = "files", + .command = rtems_shell_main_mount, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_msdosfmt.c b/cpukit/libmisc/shell/main_msdosfmt.c index a61ae5808f..3e96e209ec 100644 --- a/cpukit/libmisc/shell/main_msdosfmt.c +++ b/cpukit/libmisc/shell/main_msdosfmt.c @@ -169,19 +169,19 @@ static int rtems_shell_main_msdos_format( #define OPTIONS "[-V label] [-s sectors/cluster] [-r size] [-v]" rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command = { - "mkdos", /* name */ - "mkdos " OPTIONS " path # format disk", /* usage */ - "files", /* topic */ - rtems_shell_main_msdos_format, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mkdos", + .usage = "mkdos " OPTIONS " path # format disk", + .topic = "files", + .command = rtems_shell_main_msdos_format, + .alias = NULL, + .next = NULL }; rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias = { - "msdosfmt", /* name */ - NULL, /* usage */ - "files", /* topic */ - rtems_shell_main_msdos_format, /* command */ - &rtems_shell_MSDOSFMT_Command, /* alias */ - NULL /* next */ + .name = "msdosfmt", + .usage = NULL, + .topic = "files", + .command = rtems_shell_main_msdos_format, + .alias = &rtems_shell_MSDOSFMT_Command, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_mv.c b/cpukit/libmisc/shell/main_mv.c index 77979a7fe5..456cfe0187 100644 --- a/cpukit/libmisc/shell/main_mv.c +++ b/cpukit/libmisc/shell/main_mv.c @@ -486,10 +486,10 @@ usage_mv(rtems_shell_mv_globals* globals) } rtems_shell_cmd_t rtems_shell_MV_Command = { - "mv", /* name */ - "[-fiv] source target ...", /* usage */ - "files", /* topic */ - rtems_shell_main_mv, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "mv", + .usage = "[-fiv] source target ...", + .topic = "files", + .command = rtems_shell_main_mv, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_pci.c b/cpukit/libmisc/shell/main_pci.c index 4100a15921..dfbdfee17c 100644 --- a/cpukit/libmisc/shell/main_pci.c +++ b/cpukit/libmisc/shell/main_pci.c @@ -557,10 +557,10 @@ static int rtems_shell_main_pci( } rtems_shell_cmd_t rtems_shell_PCI_Command = { - "pci", /* name */ - pci_usage_str, /* usage */ - "system", /* topic */ - rtems_shell_main_pci, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "pci", + .usage = pci_usage_str, + .topic = "system", + .command = rtems_shell_main_pci, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_perioduse.c b/cpukit/libmisc/shell/main_perioduse.c index 82cc2ddcd1..18791f25f7 100644 --- a/cpukit/libmisc/shell/main_perioduse.c +++ b/cpukit/libmisc/shell/main_perioduse.c @@ -77,10 +77,10 @@ static int rtems_shell_main_perioduse( } rtems_shell_cmd_t rtems_shell_PERIODUSE_Command = { - "perioduse", /* name */ - "[-r] print or reset per period usage", /* usage */ - "rtems", /* topic */ - rtems_shell_main_perioduse, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "perioduse", + .usage = "[-r] print or reset per period usage", + .topic = "rtems", + .command = rtems_shell_main_perioduse, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_pwd.c b/cpukit/libmisc/shell/main_pwd.c index f5f5671dba..e01744f6f8 100644 --- a/cpukit/libmisc/shell/main_pwd.c +++ b/cpukit/libmisc/shell/main_pwd.c @@ -55,10 +55,10 @@ static int rtems_shell_main_pwd( } rtems_shell_cmd_t rtems_shell_PWD_Command = { - "pwd", /* name */ - "pwd # print work directory", /* usage */ - "files", /* topic */ - rtems_shell_main_pwd, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "pwd", + .usage = "pwd # print work directory", + .topic = "files", + .command = rtems_shell_main_pwd, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_rm.c b/cpukit/libmisc/shell/main_rm.c index ab712d59f9..52d9882b0c 100644 --- a/cpukit/libmisc/shell/main_rm.c +++ b/cpukit/libmisc/shell/main_rm.c @@ -704,10 +704,10 @@ usage_rm(rtems_shell_rm_globals* globals) } rtems_shell_cmd_t rtems_shell_RM_Command = { - "rm", /* name */ - "[-f | -i] [-dIPRrvW] file ...", /* usage */ - "files", /* topic */ - rtems_shell_main_rm, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "rm", + .usage = "[-f | -i] [-dIPRrvW] file ...", + .topic = "files", + .command = rtems_shell_main_rm, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_rmdir.c b/cpukit/libmisc/shell/main_rmdir.c index e8d2cbf5b5..ca96cb06d4 100644 --- a/cpukit/libmisc/shell/main_rmdir.c +++ b/cpukit/libmisc/shell/main_rmdir.c @@ -61,10 +61,10 @@ static int rtems_shell_main_rmdir (int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_RMDIR_Command = { - "rmdir", /* name */ - "rmdir dir # remove directory", /* usage */ - "files", /* topic */ - rtems_shell_main_rmdir, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "rmdir", + .usage = "rmdir dir # remove directory", + .topic = "files", + .command = rtems_shell_main_rmdir, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_rtems.c b/cpukit/libmisc/shell/main_rtems.c index 3437204b12..377e852744 100644 --- a/cpukit/libmisc/shell/main_rtems.c +++ b/cpukit/libmisc/shell/main_rtems.c @@ -144,13 +144,13 @@ static int rtems_shell_main_rtems( "rtems (eg. help)" rtems_shell_cmd_t rtems_shell_RTEMS_Command = { - "rtems", /* name */ - HELP_LINE, /* usage */ - "rtems", /* topic */ - rtems_shell_main_rtems, /* command */ - NULL, /* alias */ - NULL, /* next */ - 0500, /* mode */ - 0, /* uid */ - 0 /* gid */ + .name = "rtems", + .usage = HELP_LINE, + .topic = "rtems", + .command = rtems_shell_main_rtems, + .alias = NULL, + .next = NULL, + .mode = 0500, + .uid = 0, + .gid = 0 }; diff --git a/cpukit/libmisc/shell/main_rtrace.c b/cpukit/libmisc/shell/main_rtrace.c index 261cf4983d..fc1081b1fd 100644 --- a/cpukit/libmisc/shell/main_rtrace.c +++ b/cpukit/libmisc/shell/main_rtrace.c @@ -725,10 +725,10 @@ rtems_shell_main_rtrace (int argc, char* argv[]) } rtems_shell_cmd_t rtems_shell_RTRACE_Command = { - "rtrace", /* name */ - "rtrace [-l]", /* usage */ - "misc", /* topic */ - rtems_shell_main_rtrace, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "rtrace", + .usage = "rtrace [-l]", + .topic = "misc", + .command = rtems_shell_main_rtrace, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_setenv.c b/cpukit/libmisc/shell/main_setenv.c index ae8de67689..788ec07226 100644 --- a/cpukit/libmisc/shell/main_setenv.c +++ b/cpukit/libmisc/shell/main_setenv.c @@ -92,10 +92,10 @@ static int rtems_shell_main_setenv(int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_SETENV_Command = { - "setenv", /* name */ - "setenv [var] [string]", /* usage */ - "misc", /* topic */ - rtems_shell_main_setenv, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "setenv", + .usage = "setenv [var] [string]", + .topic = "misc", + .command = rtems_shell_main_setenv, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_sleep.c b/cpukit/libmisc/shell/main_sleep.c index 485b9a771f..829ff390ee 100644 --- a/cpukit/libmisc/shell/main_sleep.c +++ b/cpukit/libmisc/shell/main_sleep.c @@ -85,10 +85,10 @@ static int rtems_shell_main_sleep( } rtems_shell_cmd_t rtems_shell_SLEEP_Command = { - "sleep", /* name */ - "sleep seconds [nanoseconds]", /* usage */ - "misc", /* topic */ - rtems_shell_main_sleep, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "sleep", + .usage = "sleep seconds [nanoseconds]", + .topic = "misc", + .command = rtems_shell_main_sleep, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_stackuse.c b/cpukit/libmisc/shell/main_stackuse.c index f2970daeae..1600cdd950 100644 --- a/cpukit/libmisc/shell/main_stackuse.c +++ b/cpukit/libmisc/shell/main_stackuse.c @@ -57,10 +57,10 @@ static int rtems_shell_main_stackuse( } rtems_shell_cmd_t rtems_shell_STACKUSE_Command = { - "stackuse", /* name */ - "print per thread stack usage", /* usage */ - "rtems", /* topic */ - rtems_shell_main_stackuse, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "stackuse", + .usage = "print per thread stack usage", + .topic = "rtems", + .command = rtems_shell_main_stackuse, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_top.c b/cpukit/libmisc/shell/main_top.c index b8734b9a66..d8675e0665 100644 --- a/cpukit/libmisc/shell/main_top.c +++ b/cpukit/libmisc/shell/main_top.c @@ -76,10 +76,10 @@ static int rtems_shell_main_top( } rtems_shell_cmd_t rtems_shell_TOP_Command = { - "top", /* name */ - "[-r] print or reset per thread cpu usage", /* usage */ - "rtems", /* topic */ - rtems_shell_main_top, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "top", + .usage = "[-r] print or reset per thread cpu usage", + .topic = "rtems", + .command = rtems_shell_main_top, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_tty.c b/cpukit/libmisc/shell/main_tty.c index f411190e33..300782893c 100644 --- a/cpukit/libmisc/shell/main_tty.c +++ b/cpukit/libmisc/shell/main_tty.c @@ -54,10 +54,10 @@ static int rtems_shell_main_tty( } rtems_shell_cmd_t rtems_shell_TTY_Command = { - "tty", /* name */ - "show ttyname", /* usage */ - "misc", /* topic */ - rtems_shell_main_tty, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "tty", + .usage = "show ttyname", + .topic = "misc", + .command = rtems_shell_main_tty, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_umask.c b/cpukit/libmisc/shell/main_umask.c index 96603f922c..63af6d3b38 100644 --- a/cpukit/libmisc/shell/main_umask.c +++ b/cpukit/libmisc/shell/main_umask.c @@ -72,10 +72,10 @@ static int rtems_shell_main_umask( } rtems_shell_cmd_t rtems_shell_UMASK_Command = { - "umask", /* name */ - "umask [new_umask]", /* usage */ - "misc", /* topic */ - rtems_shell_main_umask, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "umask", + .usage = "umask [new_umask]", + .topic = "misc", + .command = rtems_shell_main_umask, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_unmount.c b/cpukit/libmisc/shell/main_unmount.c index a62d2a7132..a684701b25 100644 --- a/cpukit/libmisc/shell/main_unmount.c +++ b/cpukit/libmisc/shell/main_unmount.c @@ -84,10 +84,10 @@ static int rtems_shell_main_unmount( } rtems_shell_cmd_t rtems_shell_UNMOUNT_Command = { - "unmount", /* name */ - "unmount path # unmount disk", /* usage */ - "files", /* topic */ - rtems_shell_main_unmount, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "unmount", + .usage = "unmount path # unmount disk", + .topic = "files", + .command = rtems_shell_main_unmount, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_unsetenv.c b/cpukit/libmisc/shell/main_unsetenv.c index 60ba705f08..95a75ac9bb 100644 --- a/cpukit/libmisc/shell/main_unsetenv.c +++ b/cpukit/libmisc/shell/main_unsetenv.c @@ -63,10 +63,10 @@ static int rtems_shell_main_unsetenv(int argc, char *argv[]) } rtems_shell_cmd_t rtems_shell_UNSETENV_Command = { - "unsetenv", /* name */ - "unsetenv [var]", /* usage */ - "misc", /* topic */ - rtems_shell_main_unsetenv, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "unsetenv", + .usage = "unsetenv [var]", + .topic = "misc", + .command = rtems_shell_main_unsetenv, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_whoami.c b/cpukit/libmisc/shell/main_whoami.c index b3abbb107c..a68052aa46 100644 --- a/cpukit/libmisc/shell/main_whoami.c +++ b/cpukit/libmisc/shell/main_whoami.c @@ -58,10 +58,10 @@ static int rtems_shell_main_whoami( } rtems_shell_cmd_t rtems_shell_WHOAMI_Command = { - "whoami", /* name */ - "show current user", /* usage */ - "misc", /* topic */ - rtems_shell_main_whoami, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "whoami", + .usage = "show current user", + .topic = "misc", + .command = rtems_shell_main_whoami, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/main_wkspaceinfo.c b/cpukit/libmisc/shell/main_wkspaceinfo.c index c99afba2ba..3d72315f9a 100644 --- a/cpukit/libmisc/shell/main_wkspaceinfo.c +++ b/cpukit/libmisc/shell/main_wkspaceinfo.c @@ -69,10 +69,10 @@ static int rtems_shell_main_wkspace_info( } rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command = { - "wkspace", /* name */ - "Report on RTEMS Executive Workspace", /* usage */ - "rtems", /* topic */ - rtems_shell_main_wkspace_info, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "wkspace", + .usage = "Report on RTEMS Executive Workspace", + .topic = "rtems", + .command = rtems_shell_main_wkspace_info, + .alias = NULL, + .next = NULL }; diff --git a/cpukit/libmisc/shell/shell_script.c b/cpukit/libmisc/shell/shell_script.c index 692b19cea9..9700c0a911 100644 --- a/cpukit/libmisc/shell/shell_script.c +++ b/cpukit/libmisc/shell/shell_script.c @@ -243,12 +243,12 @@ static int rtems_shell_main_joel( } rtems_shell_cmd_t rtems_shell_JOEL_Command = { - "joel", /* name */ - "joel [args] SCRIPT", /* usage */ - "misc", /* topic */ - rtems_shell_main_joel, /* command */ - NULL, /* alias */ - NULL /* next */ + .name = "joel", + .usage = "joel [args] SCRIPT", + .topic = "misc", + .command = rtems_shell_main_joel, + .alias = NULL, + .next = NULL }; /*