mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
virsh: do not return bool in virshNetworkPortUUIDCompleter
portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
2e7849735f
commit
dbe3cf6c64
@ -103,7 +103,7 @@ virshNetworkPortUUIDCompleter(vshControl *ctl,
|
||||
return NULL;
|
||||
|
||||
if (!(net = virshCommandOptNetwork(ctl, cmd, NULL)))
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
if ((nports = virNetworkListAllPorts(net, &ports, flags)) < 0)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user