mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemumonitortestutils: remove multiline function calls
This commit is contained in:
parent
65f3f9dd78
commit
5bf61f3818
@ -94,12 +94,8 @@ qemuMonitorTestAddReponse(qemuMonitorTestPtr test,
|
|||||||
}
|
}
|
||||||
|
|
||||||
want -= 2;
|
want -= 2;
|
||||||
memcpy(test->outgoing + test->outgoingLength,
|
memcpy(test->outgoing + test->outgoingLength, response, want);
|
||||||
response,
|
memcpy(test->outgoing + test->outgoingLength + want, "\r\n", 2);
|
||||||
want);
|
|
||||||
memcpy(test->outgoing + test->outgoingLength + want,
|
|
||||||
"\r\n",
|
|
||||||
2);
|
|
||||||
test->outgoingLength += want + 2;
|
test->outgoingLength += want + 2;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -484,10 +480,7 @@ qemuMonitorTestNew(bool json, virDomainXMLOptionPtr xmlopt)
|
|||||||
if (!(test->vm = virDomainObjNew(xmlopt)))
|
if (!(test->vm = virDomainObjNew(xmlopt)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (virNetSocketNewListenUNIX(path,
|
if (virNetSocketNewListenUNIX(path, 0700, getuid(), getgid(),
|
||||||
0700,
|
|
||||||
getuid(),
|
|
||||||
getgid(),
|
|
||||||
&test->server) < 0)
|
&test->server) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user