* src/domain_conf.c: fix a parsing error for input devices

patch by Cole Robinson
daniel
This commit is contained in:
Daniel Veillard 2008-09-02 15:33:39 +00:00
parent b8f2610280
commit 10ccfc92f3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Sep 2 17:30:50 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/domain_conf.c: fix a parsing error for input devices
patch by Cole Robinson
Tue Sep 2 16:55:01 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_conf.c: patch from Cole Robinson to report in the

View File

@ -1656,7 +1656,7 @@ virDomainDeviceDefPtr virDomainDeviceDefParse(virConnectPtr conn,
if (!(dev->data.net = virDomainNetDefParseXML(conn, node)))
goto error;
} else if (xmlStrEqual(node->name, BAD_CAST "input")) {
dev->type = VIR_DOMAIN_DEVICE_DISK;
dev->type = VIR_DOMAIN_DEVICE_INPUT;
if (!(dev->data.input = virDomainInputDefParseXML(conn, def->os.type, node)))
goto error;
} else if (xmlStrEqual(node->name, BAD_CAST "sound")) {