virsh: Use virshDomain type in 'inject-nmi'

With a nice side-effect of fixing alignment.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-09-09 10:41:15 +02:00
parent ec1ea11988
commit b088e27065

View File

@ -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;
}
/*