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

[libvirt] [PATCH 01/19] qemuBuildSerialChrDeviceStr: rename cmd to buf



We usually use 'cmd' for a virCommand(Ptr) variable.

Signed-off-by: Ján Tomko <jtomko redhat com>
---
 src/qemu/qemu_command.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index e3f4ef624b..98516d2627 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -10867,7 +10867,7 @@ qemuBuildSerialChrDeviceStr(char **deviceStr,
                             virDomainChrDefPtr serial,
                             virQEMUCapsPtr qemuCaps)
 {
-    virBuffer cmd = VIR_BUFFER_INITIALIZER;
+    virBuffer buf = VIR_BUFFER_INITIALIZER;
     virQEMUCapsFlags caps;
 
     switch ((virDomainChrSerialTargetModel) serial->targetModel) {
@@ -10901,21 +10901,21 @@ qemuBuildSerialChrDeviceStr(char **deviceStr,
         goto error;
     }
 
-    virBufferAsprintf(&cmd, "%s,chardev=char%s,id=%s",
+    virBufferAsprintf(&buf, "%s,chardev=char%s,id=%s",
                       virDomainChrSerialTargetModelTypeToString(serial->targetModel),
                       serial->info.alias, serial->info.alias);
 
-    if (qemuBuildDeviceAddressStr(&cmd, def, &serial->info, qemuCaps) < 0)
+    if (qemuBuildDeviceAddressStr(&buf, def, &serial->info, qemuCaps) < 0)
         goto error;
 
-    if (virBufferCheckError(&cmd) < 0)
+    if (virBufferCheckError(&buf) < 0)
         goto error;
 
-    *deviceStr = virBufferContentAndReset(&cmd);
+    *deviceStr = virBufferContentAndReset(&buf);
     return 0;
 
  error:
-    virBufferFreeAndReset(&cmd);
+    virBufferFreeAndReset(&buf);
     return -1;
 }
 
-- 
2.19.2


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