提交 b088e270 编写于 作者: P Peter Krempa

virsh: Use virshDomain type in 'inject-nmi'

With a nice side-effect of fixing alignment.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 ec1ea119
......@@ -8645,17 +8645,15 @@ static const vshCmdOptDef opts_inject_nmi[] = {
static bool
cmdInjectNMI(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
bool ret = true;
VIR_AUTOPTR(virshDomain) dom = NULL;
if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
return false;
if (virDomainInjectNMI(dom, 0) < 0)
ret = false;
return false;
virshDomainFree(dom);
return ret;
return true;
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册