提交 65c2738e 编写于 作者: D Daniel P. Berrange

Remove use of strcmp()

上级 25f860dc
Thu May 15 16:06:08 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Remove use of strcmp()
Thu May 15 12:21:08 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Fix default disk bus selection logic
......
......@@ -1436,7 +1436,7 @@ static int qemudParseInputXML(virConnectPtr conn,
}
}
} else {
if (!strcmp(vm->os.type, "hvm")) {
if (STREQ(vm->os.type, "hvm")) {
if (input->type == QEMU_INPUT_TYPE_MOUSE)
input->bus = QEMU_INPUT_BUS_PS2;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册