Fix some coding style issues

Fix some coding style issues with alignment and spaces.

Signed-off-by: jiangjiacheng <jiangjiacheng@huawei.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
This commit is contained in:
jiangjiacheng 2022-09-06 21:48:31 +08:00 committed by Michal Privoznik
parent 381c8dbde0
commit 6a56f325c8
2 changed files with 15 additions and 15 deletions

View File

@ -26194,7 +26194,7 @@ virDomainMemorytuneDefFormat(virBuffer *buf,
&childrenBuf) < 0) &childrenBuf) < 0)
return -1; return -1;
for (i = 0; i< resctrl->nmonitors; i++) { for (i = 0; i < resctrl->nmonitors; i++) {
if (virDomainResctrlMonDefFormatHelper(resctrl->monitors[i], if (virDomainResctrlMonDefFormatHelper(resctrl->monitors[i],
VIR_RESCTRL_MONITOR_TYPE_MEMBW, VIR_RESCTRL_MONITOR_TYPE_MEMBW,
&childrenBuf) < 0) &childrenBuf) < 0)

View File

@ -416,15 +416,15 @@ virNetServerClientNewInternal(unsigned long long id,
virNetServerClient *virNetServerClientNew(unsigned long long id, virNetServerClient *virNetServerClientNew(unsigned long long id,
virNetSocket *sock, virNetSocket *sock,
int auth, int auth,
bool readonly, bool readonly,
size_t nrequests_max, size_t nrequests_max,
virNetTLSContext *tls, virNetTLSContext *tls,
virNetServerClientPrivNew privNew, virNetServerClientPrivNew privNew,
virNetServerClientPrivPreExecRestart privPreExecRestart, virNetServerClientPrivPreExecRestart privPreExecRestart,
virFreeCallback privFree, virFreeCallback privFree,
void *privOpaque) void *privOpaque)
{ {
virNetServerClient *client; virNetServerClient *client;
time_t now; time_t now;
@ -454,11 +454,11 @@ virNetServerClient *virNetServerClientNew(unsigned long long id,
virNetServerClient *virNetServerClientNewPostExecRestart(virNetServer *srv, virNetServerClient *virNetServerClientNewPostExecRestart(virNetServer *srv,
virJSONValue *object, virJSONValue *object,
virNetServerClientPrivNewPostExecRestart privNew, virNetServerClientPrivNewPostExecRestart privNew,
virNetServerClientPrivPreExecRestart privPreExecRestart, virNetServerClientPrivPreExecRestart privPreExecRestart,
virFreeCallback privFree, virFreeCallback privFree,
void *privOpaque) void *privOpaque)
{ {
virJSONValue *child; virJSONValue *child;
virNetServerClient *client = NULL; virNetServerClient *client = NULL;