[PATCH 10/10] qemu: monitor: s/ret/rc/ in UpdateVideoSize functions

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

 



Use 'rc' to temporarily store the subfunction return values,
instead of ret.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/qemu/qemu_monitor.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index 1b2773c60a..d79e6e921c 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -1204,15 +1204,15 @@ qemuMonitorUpdateVideoMemorySize(qemuMonitorPtr mon,
                                  virDomainVideoDefPtr video,
                                  const char *videoName)
 {
-    int ret = -1;
+    int rc = -1;
     VIR_AUTOFREE(char *) path = NULL;
 
     QEMU_CHECK_MONITOR(mon);
 
-    ret = qemuMonitorJSONFindLinkPath(mon, videoName,
-                                      video->info.alias, &path);
-    if (ret < 0) {
-        if (ret == -2)
+    rc = qemuMonitorJSONFindLinkPath(mon, videoName,
+                                     video->info.alias, &path);
+    if (rc < 0) {
+        if (rc == -2)
             virReportError(VIR_ERR_INTERNAL_ERROR,
                            _("Failed to find QOM Object path for "
                              "device '%s'"), videoName);
@@ -1234,15 +1234,15 @@ qemuMonitorUpdateVideoVram64Size(qemuMonitorPtr mon,
                                  virDomainVideoDefPtr video,
                                  const char *videoName)
 {
-    int ret = -1;
+    int rc = -1;
     VIR_AUTOFREE(char *) path = NULL;
 
     QEMU_CHECK_MONITOR(mon);
 
-    ret = qemuMonitorJSONFindLinkPath(mon, videoName,
-                                      video->info.alias, &path);
-    if (ret < 0) {
-        if (ret == -2)
+    rc = qemuMonitorJSONFindLinkPath(mon, videoName,
+                                     video->info.alias, &path);
+    if (rc < 0) {
+        if (rc == -2)
             virReportError(VIR_ERR_INTERNAL_ERROR,
                            _("Failed to find QOM Object path for "
                              "device '%s'"), videoName);
-- 
2.20.1

--
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