Blame SOURCES/libvirt-qemuStorageSourcePrivateDataFormat-Rename-tmp-to-objectsChildBuf.patch

acda74
From deb6aad4f6bcfd95235d3149e9d69b95fe011294 Mon Sep 17 00:00:00 2001
acda74
Message-Id: <deb6aad4f6bcfd95235d3149e9d69b95fe011294@dist-git>
acda74
From: Peter Krempa <pkrempa@redhat.com>
acda74
Date: Tue, 31 Jan 2023 15:19:58 +0100
acda74
Subject: [PATCH] qemuStorageSourcePrivateDataFormat: Rename 'tmp' to
acda74
 'objectsChildBuf'
acda74
acda74
Be consistent with other children buffer variable naming scheme.
acda74
acda74
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
acda74
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
acda74
(cherry picked from commit 531adf32743b6045f44964ec5e1f8bdb9c913797)
acda74
acda74
https://bugzilla.redhat.com/show_bug.cgi?id=2040272
acda74
---
acda74
 src/qemu/qemu_domain.c | 14 +++++++-------
acda74
 1 file changed, 7 insertions(+), 7 deletions(-)
acda74
acda74
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
acda74
index 2eb5653254..226d4d6dc1 100644
acda74
--- a/src/qemu/qemu_domain.c
acda74
+++ b/src/qemu/qemu_domain.c
acda74
@@ -2005,9 +2005,9 @@ static int
acda74
 qemuStorageSourcePrivateDataFormat(virStorageSource *src,
acda74
                                    virBuffer *buf)
acda74
 {
acda74
-    g_auto(virBuffer) tmp = VIR_BUFFER_INIT_CHILD(buf);
acda74
     qemuDomainStorageSourcePrivate *srcPriv = QEMU_DOMAIN_STORAGE_SOURCE_PRIVATE(src);
acda74
     g_auto(virBuffer) nodenamesChildBuf = VIR_BUFFER_INIT_CHILD(buf);
acda74
+    g_auto(virBuffer) objectsChildBuf = VIR_BUFFER_INIT_CHILD(buf);
acda74
 
acda74
     virBufferEscapeString(&nodenamesChildBuf, "<nodename type='storage' name='%s'/>\n", src->nodestorage);
acda74
     virBufferEscapeString(&nodenamesChildBuf, "<nodename type='format' name='%s'/>\n", src->nodeformat);
acda74
@@ -2025,16 +2025,16 @@ qemuStorageSourcePrivateDataFormat(virStorageSource *src,
acda74
         return -1;
acda74
 
acda74
     if (srcPriv) {
acda74
-        qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->secinfo, "auth");
acda74
-        qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->encinfo, "encryption");
acda74
-        qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->httpcookie, "httpcookie");
acda74
-        qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->tlsKeySecret, "tlskey");
acda74
+        qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->secinfo, "auth");
acda74
+        qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->encinfo, "encryption");
acda74
+        qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->httpcookie, "httpcookie");
acda74
+        qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->tlsKeySecret, "tlskey");
acda74
     }
acda74
 
acda74
     if (src->tlsAlias)
acda74
-        virBufferAsprintf(&tmp, "<TLSx509 alias='%s'/>\n", src->tlsAlias);
acda74
+        virBufferAsprintf(&objectsChildBuf, "<TLSx509 alias='%s'/>\n", src->tlsAlias);
acda74
 
acda74
-    virXMLFormatElement(buf, "objects", NULL, &tmp);
acda74
+    virXMLFormatElement(buf, "objects", NULL, &objectsChildBuf);
acda74
 
acda74
     if (src->thresholdEventWithIndex)
acda74
         virBufferAddLit(buf, "<thresholdEvent indexUsed='yes'/>\n");
acda74
-- 
acda74
2.39.1
acda74