]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
qemumonitortestutils: remove multiline function calls
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jul 2013 09:02:00 +0000 (11:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jul 2013 12:25:43 +0000 (14:25 +0200)
tests/qemumonitortestutils.c

index a3c54316e731ef9b4ecdbec216aeec444694e8d7..34ca1ae51b8a4840793ded3114d82696d96d543b 100644 (file)
@@ -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;