]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix misc typos in domain XML handling
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Jul 2008 16:25:11 +0000 (16:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Jul 2008 16:25:11 +0000 (16:25 +0000)
ChangeLog
src/domain_conf.c

index 4ebfe099ab722a9719471ae517aa31175247818a..6ca9ba7230f6ca124480dec90ee4d6c3c1da382a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * src/xml.c: Remove now unused c-ctype.h include
index 9e9bc9a87de082f801b354a8d30544e18de03a51..8ddfb6e7bf2f68a215a366f8cc7e8a4ba69c600d 100644 (file)
@@ -1396,7 +1396,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
     }
     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))) {
         virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
                              "%s", _("missing domain type attribute"));
@@ -1762,7 +1762,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
     }
     VIR_FREE(nodes);
 
-    /* analysis of the input devices */
+    /* analysis of the graphics devices */
     if ((n = virXPathNodeSet(conn, "./devices/graphics", ctxt, &nodes)) < 0) {
         virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
                              "%s", _("cannot extract graphics devices"));
@@ -1847,7 +1847,7 @@ virDomainDefPtr virDomainDefParseString(virConnectPtr conn,
     xmlNodePtr root;
     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_NOERROR | XML_PARSE_NOWARNING))) {
         virDomainReportError(conn, VIR_ERR_XML_ERROR, NULL);