mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
ec1ea11988
commit
b088e27065
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user