提交 982682b8 编写于 作者: C Chris Lalancette

Replace two strcmp() by STREQ() in qemu_driver.c

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 5bd53990
......@@ -4145,7 +4145,7 @@ qemudCanonicalizeMachineFromInfo(virDomainDefPtr def,
if (!machine->canonical)
continue;
if (strcmp(def->os.machine, machine->name) != 0)
if (STRNEQ(def->os.machine, machine->name))
continue;
if (!(*canonical = strdup(machine->canonical))) {
......@@ -4174,7 +4174,7 @@ qemudCanonicalizeMachineDirect(virDomainDefPtr def, char **canonical)
if (!machines[i]->canonical)
continue;
if (strcmp(def->os.machine, machines[i]->name) != 0)
if (STRNEQ(def->os.machine, machines[i]->name))
continue;
*canonical = machines[i]->canonical;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册