conf: Fix virDomainShmemDefFind

Due to the switch of parameters in a call to virDomainShmemDefEquals()
no device was found when looking for device with all the information
except address.  Also fix the indentation.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2016-09-21 15:14:46 +02:00
parent 44bf83e313
commit ae612493ff

View File

@ -14897,8 +14897,8 @@ virDomainShmemDefFind(virDomainDefPtr def,
size_t i; size_t i;
for (i = 0; i < def->nshmems; i++) { for (i = 0; i < def->nshmems; i++) {
if (virDomainShmemDefEquals(def->shmems[i], shmem)) if (virDomainShmemDefEquals(shmem, def->shmems[i]))
break; break;
} }
if (i < def->nshmems) if (i < def->nshmems)