mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
Replace two strcmp() by STREQ() in qemu_driver.c
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
5bd53990c5
commit
982682b8fd
@ -4145,7 +4145,7 @@ qemudCanonicalizeMachineFromInfo(virDomainDefPtr def,
|
|||||||
if (!machine->canonical)
|
if (!machine->canonical)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcmp(def->os.machine, machine->name) != 0)
|
if (STRNEQ(def->os.machine, machine->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(*canonical = strdup(machine->canonical))) {
|
if (!(*canonical = strdup(machine->canonical))) {
|
||||||
@ -4174,7 +4174,7 @@ qemudCanonicalizeMachineDirect(virDomainDefPtr def, char **canonical)
|
|||||||
if (!machines[i]->canonical)
|
if (!machines[i]->canonical)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcmp(def->os.machine, machines[i]->name) != 0)
|
if (STRNEQ(def->os.machine, machines[i]->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*canonical = machines[i]->canonical;
|
*canonical = machines[i]->canonical;
|
||||||
|
Loading…
Reference in New Issue
Block a user