[PATCH 1/5] virxml: Fix indentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/util/virxml.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/util/virxml.c b/src/util/virxml.c
index 666024809438..39049d869bc1 100644
--- a/src/util/virxml.c
+++ b/src/util/virxml.c
@@ -671,7 +671,7 @@ catchXMLError(void *ctx, const char *msg ATTRIBUTE_UNUSED, ...)
         return;
 
     if (ctxt->_private)
-            domcode = ((struct virParserData *) ctxt->_private)->domcode;
+        domcode = ((struct virParserData *) ctxt->_private)->domcode;
 
 
     cur = ctxt->input->cur;
@@ -718,7 +718,7 @@ catchXMLError(void *ctx, const char *msg ATTRIBUTE_UNUSED, ...)
                               contextstr,
                               pointerstr);
     } else {
-         virGenericReportError(domcode, VIR_ERR_XML_DETAIL,
+        virGenericReportError(domcode, VIR_ERR_XML_DETAIL,
                               _("at line %d: %s%s\n%s"),
                               ctxt->lastError.line,
                               ctxt->lastError.message,
@@ -928,26 +928,26 @@ char *
 virXMLNodeToString(xmlDocPtr doc,
                    xmlNodePtr node)
 {
-     xmlBufferPtr xmlbuf = NULL;
-     char *ret = NULL;
+    xmlBufferPtr xmlbuf = NULL;
+    char *ret = NULL;
 
-     if (!(xmlbuf = xmlBufferCreate())) {
-         virReportOOMError();
-         return NULL;
-     }
+    if (!(xmlbuf = xmlBufferCreate())) {
+        virReportOOMError();
+        return NULL;
+    }
 
-     if (xmlNodeDump(xmlbuf, doc, node, 0, 1) == 0) {
-         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                        _("failed to convert the XML node tree"));
-         goto cleanup;
-     }
+    if (xmlNodeDump(xmlbuf, doc, node, 0, 1) == 0) {
+        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+                       _("failed to convert the XML node tree"));
+        goto cleanup;
+    }
 
-     ignore_value(VIR_STRDUP(ret, (const char *)xmlBufferContent(xmlbuf)));
+    ignore_value(VIR_STRDUP(ret, (const char *)xmlBufferContent(xmlbuf)));
 
  cleanup:
-     xmlBufferFree(xmlbuf);
+    xmlBufferFree(xmlbuf);
 
-     return ret;
+    return ret;
 }
 
 typedef int (*virXMLForeachCallback)(xmlNodePtr node,
@@ -1126,7 +1126,7 @@ virXMLNodeSanitizeNamespaces(xmlNodePtr node)
     xmlNodePtr dupl;
 
     if (!node)
-       return;
+        return;
 
     child = node->children;
     while (child) {
-- 
2.14.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux