Remove use of strcmp()

This commit is contained in:
Daniel P. Berrange 2008-05-15 20:07:34 +00:00
parent 25f860dc2f
commit 65c2738ea1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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