[libvirt] [PATCH 14/34] Fixed char device stuff

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

 



Temp hack
---
 src/qemu/qemu_monitor_text.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c
index 52cd97c..2b8c1e8 100644
--- a/src/qemu/qemu_monitor_text.c
+++ b/src/qemu/qemu_monitor_text.c
@@ -1678,14 +1678,12 @@ cleanup:
 int qemuMonitorTextGetPtyPaths(qemuMonitorPtr mon,
                                virHashTablePtr paths)
 {
-    const char *cmd = "info chardev";
     char *reply = NULL;
     int ret = -1;
 
-    if (qemuMonitorCommand(mon, cmd, &reply) < 0) {
-        qemudReportError(NULL, NULL, NULL, VIR_ERR_OPERATION_FAILED,
-                         _("failed to retrieve chardev info in qemu with '%s'"),
-                         cmd);
+    if (qemuMonitorCommand(mon, "info chardev", &reply) < 0) {
+        qemudReportError(NULL, NULL, NULL, VIR_ERR_OPERATION_FAILED, "%s",
+                         _("failed to retrieve chardev info in qemu with 'info chardev'"));
         goto cleanup;
     }
 
@@ -1747,7 +1745,6 @@ int qemuMonitorTextGetPtyPaths(qemuMonitorPtr mon,
     ret = 0;
 
 cleanup:
-    VIR_FREE(cmd);
     VIR_FREE(reply);
     return ret;
 }
-- 
1.6.5.2

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