[PATCH 07/20] qemumonitortestutils: remove multiline function calls

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

 



---
 tests/qemumonitortestutils.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/tests/qemumonitortestutils.c b/tests/qemumonitortestutils.c
index a3c5431..34ca1ae 100644
--- a/tests/qemumonitortestutils.c
+++ b/tests/qemumonitortestutils.c
@@ -94,12 +94,8 @@ qemuMonitorTestAddReponse(qemuMonitorTestPtr test,
     }

     want -= 2;
-    memcpy(test->outgoing + test->outgoingLength,
-           response,
-           want);
-    memcpy(test->outgoing + test->outgoingLength + want,
-           "\r\n",
-           2);
+    memcpy(test->outgoing + test->outgoingLength, response, want);
+    memcpy(test->outgoing + test->outgoingLength + want, "\r\n", 2);
     test->outgoingLength += want + 2;
     return 0;
 }
@@ -484,10 +480,7 @@ qemuMonitorTestNew(bool json, virDomainXMLOptionPtr xmlopt)
     if (!(test->vm = virDomainObjNew(xmlopt)))
         goto error;

-    if (virNetSocketNewListenUNIX(path,
-                                  0700,
-                                  getuid(),
-                                  getgid(),
+    if (virNetSocketNewListenUNIX(path, 0700, getuid(), getgid(),
                                   &test->server) < 0)
         goto error;

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