From nobody Fri May 16 01:04:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502371920890141.35801882736484; Thu, 10 Aug 2017 06:32:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC4CE3E2C2; Thu, 10 Aug 2017 13:31:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 28A7295684; Thu, 10 Aug 2017 13:31:58 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2C5094A468; Thu, 10 Aug 2017 13:31:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v7ADVt60022610 for ; Thu, 10 Aug 2017 09:31:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1C60697840; Thu, 10 Aug 2017 13:31:55 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE0419783E for ; Thu, 10 Aug 2017 13:31:51 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.brq.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id 2ED7B1203D5 for ; Thu, 10 Aug 2017 15:31:50 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CC4CE3E2C2 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Martin Kletzander To: libvir-list@redhat.com Date: Thu, 10 Aug 2017 15:31:45 +0200 Message-Id: <925c32e11c34213c685690a7df2a7c24d67a879b.1502368247.git.mkletzan@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/5] virxml: Fix indentation X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 10 Aug 2017 13:31:59 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- 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_UNUS= ED, ...) return; =20 if (ctxt->_private) - domcode =3D ((struct virParserData *) ctxt->_private)->domcode; + domcode =3D ((struct virParserData *) ctxt->_private)->domcode; =20 =20 cur =3D ctxt->input->cur; @@ -718,7 +718,7 @@ catchXMLError(void *ctx, const char *msg ATTRIBUTE_UNUS= ED, ...) 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 =3D NULL; - char *ret =3D NULL; + xmlBufferPtr xmlbuf =3D NULL; + char *ret =3D NULL; =20 - if (!(xmlbuf =3D xmlBufferCreate())) { - virReportOOMError(); - return NULL; - } + if (!(xmlbuf =3D xmlBufferCreate())) { + virReportOOMError(); + return NULL; + } =20 - if (xmlNodeDump(xmlbuf, doc, node, 0, 1) =3D=3D 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("failed to convert the XML node tree")); - goto cleanup; - } + if (xmlNodeDump(xmlbuf, doc, node, 0, 1) =3D=3D 0) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("failed to convert the XML node tree")); + goto cleanup; + } =20 - ignore_value(VIR_STRDUP(ret, (const char *)xmlBufferContent(xmlbuf))); + ignore_value(VIR_STRDUP(ret, (const char *)xmlBufferContent(xmlbuf))); =20 cleanup: - xmlBufferFree(xmlbuf); + xmlBufferFree(xmlbuf); =20 - return ret; + return ret; } =20 typedef int (*virXMLForeachCallback)(xmlNodePtr node, @@ -1126,7 +1126,7 @@ virXMLNodeSanitizeNamespaces(xmlNodePtr node) xmlNodePtr dupl; =20 if (!node) - return; + return; =20 child =3D node->children; while (child) { --=20 2.14.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list