render / rpms / libvirt

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