mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +00:00
Fix misc typos in domain XML handling
This commit is contained in:
parent
e8a84817d4
commit
c5ecc66658
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 25 17:21:27 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/domain_conf.c: Fix typos in comments, and the dummy
|
||||||
|
filename passed to xmlReadDoc (patch from Chris Lalancette)
|
||||||
|
|
||||||
Fri Jul 25 17:17:27 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Fri Jul 25 17:17:27 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/xml.c: Remove now unused c-ctype.h include
|
* src/xml.c: Remove now unused c-ctype.h include
|
||||||
|
@ -1396,7 +1396,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
def->id = -1;
|
def->id = -1;
|
||||||
|
|
||||||
/* Find out what type of QEMU virtualization to use */
|
/* Find out what type of virtualization to use */
|
||||||
if (!(tmp = virXPathString(conn, "string(./@type)", ctxt))) {
|
if (!(tmp = virXPathString(conn, "string(./@type)", ctxt))) {
|
||||||
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
"%s", _("missing domain type attribute"));
|
"%s", _("missing domain type attribute"));
|
||||||
@ -1762,7 +1762,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
VIR_FREE(nodes);
|
VIR_FREE(nodes);
|
||||||
|
|
||||||
/* analysis of the input devices */
|
/* analysis of the graphics devices */
|
||||||
if ((n = virXPathNodeSet(conn, "./devices/graphics", ctxt, &nodes)) < 0) {
|
if ((n = virXPathNodeSet(conn, "./devices/graphics", ctxt, &nodes)) < 0) {
|
||||||
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
"%s", _("cannot extract graphics devices"));
|
"%s", _("cannot extract graphics devices"));
|
||||||
@ -1847,7 +1847,7 @@ virDomainDefPtr virDomainDefParseString(virConnectPtr conn,
|
|||||||
xmlNodePtr root;
|
xmlNodePtr root;
|
||||||
virDomainDefPtr def = NULL;
|
virDomainDefPtr def = NULL;
|
||||||
|
|
||||||
if (!(xml = xmlReadDoc(BAD_CAST xmlStr, "network.xml", NULL,
|
if (!(xml = xmlReadDoc(BAD_CAST xmlStr, "domain.xml", NULL,
|
||||||
XML_PARSE_NOENT | XML_PARSE_NONET |
|
XML_PARSE_NOENT | XML_PARSE_NONET |
|
||||||
XML_PARSE_NOERROR | XML_PARSE_NOWARNING))) {
|
XML_PARSE_NOERROR | XML_PARSE_NOWARNING))) {
|
||||||
virDomainReportError(conn, VIR_ERR_XML_ERROR, NULL);
|
virDomainReportError(conn, VIR_ERR_XML_ERROR, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user