mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-12-08 08:24:23 +03:00
Move declarations before statements
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -32,9 +32,10 @@ virshLookupDomainInternal(vshControl *ctl,
|
||||
{
|
||||
virDomainPtr dom = NULL;
|
||||
int id;
|
||||
virCheckFlags(VIRSH_BYID | VIRSH_BYUUID | VIRSH_BYNAME, NULL);
|
||||
virshControlPtr priv = ctl->privData;
|
||||
|
||||
virCheckFlags(VIRSH_BYID | VIRSH_BYUUID | VIRSH_BYNAME, NULL);
|
||||
|
||||
/* try it by ID */
|
||||
if (flags & VIRSH_BYID) {
|
||||
if (virStrToLong_i(name, NULL, 10, &id) == 0 && id >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user