mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virsh: C99 style for info_domfstrim and opts_lxc_enter_namespace
Change info_domfstrim and opts_lxc_enter_namespace initialization style to C99.
This commit is contained in:
parent
a45ec678e9
commit
a88924bc21
@ -7903,10 +7903,21 @@ static const vshCmdInfo info_lxc_enter_namespace[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const vshCmdOptDef opts_lxc_enter_namespace[] = {
|
static const vshCmdOptDef opts_lxc_enter_namespace[] = {
|
||||||
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
|
{.name = "domain",
|
||||||
{"noseclabel", VSH_OT_BOOL, 0, N_("Do not change process security label")},
|
.type = VSH_OT_DATA,
|
||||||
{"cmd", VSH_OT_ARGV, VSH_OFLAG_REQ, N_("namespace")},
|
.flags = VSH_OFLAG_REQ,
|
||||||
{NULL, 0, 0, NULL}
|
.help = N_("domain name, id or uuid")
|
||||||
|
},
|
||||||
|
{.name = "noseclabel",
|
||||||
|
.type = VSH_OT_BOOL,
|
||||||
|
.help = N_("Do not change process security label")
|
||||||
|
},
|
||||||
|
{.name = "cmd",
|
||||||
|
.type = VSH_OT_ARGV,
|
||||||
|
.flags = VSH_OFLAG_REQ,
|
||||||
|
.help = N_("namespace")
|
||||||
|
},
|
||||||
|
{.name = NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@ -10290,7 +10301,7 @@ static const vshCmdOptDef opts_domfstrim[] = {
|
|||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.help = N_("which mount point to trim")
|
.help = N_("which mount point to trim")
|
||||||
},
|
},
|
||||||
{NULL, 0, 0, NULL}
|
{.name = NULL}
|
||||||
};
|
};
|
||||||
static bool
|
static bool
|
||||||
cmdDomFSTrim(vshControl *ctl, const vshCmd *cmd)
|
cmdDomFSTrim(vshControl *ctl, const vshCmd *cmd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user