virsh.c: Switch to c99 initialization of vshCmdInfo

This commit is contained in:
Michal Privoznik 2013-02-07 16:25:10 +01:00
parent df5fd11f86
commit 6792676a04

View File

@ -440,11 +440,14 @@ int vshStreamSink(virStreamPtr st ATTRIBUTE_UNUSED,
* "help" command * "help" command
*/ */
static const vshCmdInfo info_help[] = { static const vshCmdInfo info_help[] = {
{"help", N_("print help")}, {.name = "help",
{"desc", N_("Prints global help, command specific help, or help for a\n" .data = N_("print help")
" group of related commands")}, },
{.name = "desc",
{NULL, NULL} .data = N_("Prints global help, command specific help, or help for a\n"
" group of related commands")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_help[] = { static const vshCmdOptDef opts_help[] = {
@ -702,9 +705,13 @@ vshEditReadBackFile(vshControl *ctl, const char *filename)
* "cd" command * "cd" command
*/ */
static const vshCmdInfo info_cd[] = { static const vshCmdInfo info_cd[] = {
{"help", N_("change the current directory")}, {.name = "help",
{"desc", N_("Change the current directory.")}, .data = N_("change the current directory")
{NULL, NULL} },
{.name = "desc",
.data = N_("Change the current directory.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_cd[] = { static const vshCmdOptDef opts_cd[] = {
@ -749,9 +756,13 @@ cmdCd(vshControl *ctl, const vshCmd *cmd)
* "pwd" command * "pwd" command
*/ */
static const vshCmdInfo info_pwd[] = { static const vshCmdInfo info_pwd[] = {
{"help", N_("print the current directory")}, {.name = "help",
{"desc", N_("Print the current directory.")}, .data = N_("print the current directory")
{NULL, NULL} },
{.name = "desc",
.data = N_("Print the current directory.")
},
{.name = NULL}
}; };
static bool static bool
@ -778,9 +789,13 @@ cmdPwd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "echo" command * "echo" command
*/ */
static const vshCmdInfo info_echo[] = { static const vshCmdInfo info_echo[] = {
{"help", N_("echo arguments")}, {.name = "help",
{"desc", N_("Echo back arguments, possibly with quoting.")}, .data = N_("echo arguments")
{NULL, NULL} },
{.name = "desc",
.data = N_("Echo back arguments, possibly with quoting.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_echo[] = { static const vshCmdOptDef opts_echo[] = {
@ -868,9 +883,13 @@ cmdEcho(vshControl *ctl, const vshCmd *cmd)
* "quit" command * "quit" command
*/ */
static const vshCmdInfo info_quit[] = { static const vshCmdInfo info_quit[] = {
{"help", N_("quit this interactive terminal")}, {.name = "help",
{"desc", ""}, .data = N_("quit this interactive terminal")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static bool static bool