mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-23 06:23:10 +00:00
src/remote: Remove the whitespace before ";"
This commit is contained in:
parent
13dbad4053
commit
77e2d3777d
@ -524,7 +524,7 @@ doRemoteOpen(virConnectPtr conn,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (conn->uri) {
|
if (conn->uri) {
|
||||||
for (i = 0; i < conn->uri->paramsCount ; i++) {
|
for (i = 0; i < conn->uri->paramsCount; i++) {
|
||||||
virURIParamPtr var = &conn->uri->params[i];
|
virURIParamPtr var = &conn->uri->params[i];
|
||||||
EXTRACT_URI_ARG_STR("name", name);
|
EXTRACT_URI_ARG_STR("name", name);
|
||||||
EXTRACT_URI_ARG_STR("command", command);
|
EXTRACT_URI_ARG_STR("command", command);
|
||||||
@ -1335,7 +1335,7 @@ remoteNodeGetCellsFreeMemory(virConnectPtr conn,
|
|||||||
(xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *)&ret) == -1)
|
(xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *)&ret) == -1)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
for (i = 0 ; i < ret.cells.cells_len ; i++)
|
for (i = 0; i < ret.cells.cells_len; i++)
|
||||||
freeMems[i] = ret.cells.cells_val[i];
|
freeMems[i] = ret.cells.cells_val[i];
|
||||||
|
|
||||||
xdr_free((xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *) &ret);
|
xdr_free((xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *) &ret);
|
||||||
@ -3540,7 +3540,7 @@ remoteAuthenticate(virConnectPtr conn, struct private_data *priv,
|
|||||||
_("unknown authentication type %s"), authtype);
|
_("unknown authentication type %s"), authtype);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
for (i = 0 ; i < ret.types.types_len ; i++) {
|
for (i = 0; i < ret.types.types_len; i++) {
|
||||||
if (ret.types.types_val[i] == want)
|
if (ret.types.types_val[i] == want)
|
||||||
type = want;
|
type = want;
|
||||||
}
|
}
|
||||||
@ -3683,7 +3683,7 @@ static sasl_callback_t *remoteAuthMakeCallbacks(int *credtype, int ncredtype)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0, n = 0 ; i < ncredtype ; i++) {
|
for (i = 0, n = 0; i < ncredtype; i++) {
|
||||||
int id = remoteAuthCredVir2SASL(credtype[i]);
|
int id = remoteAuthCredVir2SASL(credtype[i]);
|
||||||
if (id != 0)
|
if (id != 0)
|
||||||
cbs[n++].id = id;
|
cbs[n++].id = id;
|
||||||
@ -3712,7 +3712,7 @@ static int remoteAuthMakeCredentials(sasl_interact_t *interact,
|
|||||||
if (!cred)
|
if (!cred)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (ninteract = 0, *ncred = 0 ; interact[ninteract].id != 0 ; ninteract++) {
|
for (ninteract = 0, *ncred = 0; interact[ninteract].id != 0; ninteract++) {
|
||||||
if (interact[ninteract].result)
|
if (interact[ninteract].result)
|
||||||
continue;
|
continue;
|
||||||
(*ncred)++;
|
(*ncred)++;
|
||||||
@ -3721,7 +3721,7 @@ static int remoteAuthMakeCredentials(sasl_interact_t *interact,
|
|||||||
if (VIR_ALLOC_N(*cred, *ncred) < 0)
|
if (VIR_ALLOC_N(*cred, *ncred) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (ninteract = 0, *ncred = 0 ; interact[ninteract].id != 0 ; ninteract++) {
|
for (ninteract = 0, *ncred = 0; interact[ninteract].id != 0; ninteract++) {
|
||||||
if (interact[ninteract].result)
|
if (interact[ninteract].result)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -3756,7 +3756,7 @@ static void remoteAuthFillInteract(virConnectCredentialPtr cred,
|
|||||||
sasl_interact_t *interact)
|
sasl_interact_t *interact)
|
||||||
{
|
{
|
||||||
int ninteract, ncred;
|
int ninteract, ncred;
|
||||||
for (ninteract = 0, ncred = 0 ; interact[ninteract].id != 0 ; ninteract++) {
|
for (ninteract = 0, ncred = 0; interact[ninteract].id != 0; ninteract++) {
|
||||||
if (interact[ninteract].result)
|
if (interact[ninteract].result)
|
||||||
continue;
|
continue;
|
||||||
interact[ninteract].result = cred[ncred].result;
|
interact[ninteract].result = cred[ncred].result;
|
||||||
@ -3796,7 +3796,7 @@ static int remoteAuthFillFromConfig(virConnectPtr conn,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ninteract = 0 ; state->interact[ninteract].id != 0 ; ninteract++) {
|
for (ninteract = 0; state->interact[ninteract].id != 0; ninteract++) {
|
||||||
const char *value = NULL;
|
const char *value = NULL;
|
||||||
|
|
||||||
switch (state->interact[ninteract].id) {
|
switch (state->interact[ninteract].id) {
|
||||||
@ -3846,7 +3846,7 @@ static void remoteAuthInteractStateClear(struct remoteAuthInteractState *state,
|
|||||||
if (!state)
|
if (!state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0 ; i < state->ncred ; i++)
|
for (i = 0; i < state->ncred; i++)
|
||||||
VIR_FREE(state->cred[i].result);
|
VIR_FREE(state->cred[i].result);
|
||||||
VIR_FREE(state->cred);
|
VIR_FREE(state->cred);
|
||||||
state->ncred = 0;
|
state->ncred = 0;
|
||||||
@ -4189,7 +4189,7 @@ remoteAuthPolkit(virConnectPtr conn, struct private_data *priv,
|
|||||||
/* Auth failed. Ask client to obtain it and check again. */
|
/* Auth failed. Ask client to obtain it and check again. */
|
||||||
if (auth && auth->cb) {
|
if (auth && auth->cb) {
|
||||||
/* Check if the necessary credential type for PolicyKit is supported */
|
/* Check if the necessary credential type for PolicyKit is supported */
|
||||||
for (i = 0 ; i < auth->ncredtype ; i++) {
|
for (i = 0; i < auth->ncredtype; i++) {
|
||||||
if (auth->credtype[i] == VIR_CRED_EXTERNAL)
|
if (auth->credtype[i] == VIR_CRED_EXTERNAL)
|
||||||
allowcb = 1;
|
allowcb = 1;
|
||||||
}
|
}
|
||||||
@ -4488,7 +4488,7 @@ remoteDomainBuildEventGraphics(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
|
|||||||
if (VIR_ALLOC_N(subject->identities, msg->subject.subject_len) < 0)
|
if (VIR_ALLOC_N(subject->identities, msg->subject.subject_len) < 0)
|
||||||
goto no_memory;
|
goto no_memory;
|
||||||
subject->nidentity = msg->subject.subject_len;
|
subject->nidentity = msg->subject.subject_len;
|
||||||
for (i = 0 ; i < subject->nidentity ; i++) {
|
for (i = 0; i < subject->nidentity; i++) {
|
||||||
if (!(subject->identities[i].type = strdup(msg->subject.subject_val[i].type)) ||
|
if (!(subject->identities[i].type = strdup(msg->subject.subject_val[i].type)) ||
|
||||||
!(subject->identities[i].name = strdup(msg->subject.subject_val[i].name)))
|
!(subject->identities[i].name = strdup(msg->subject.subject_val[i].name)))
|
||||||
goto no_memory;
|
goto no_memory;
|
||||||
@ -4518,7 +4518,7 @@ no_memory:
|
|||||||
VIR_FREE(remoteAddr);
|
VIR_FREE(remoteAddr);
|
||||||
}
|
}
|
||||||
if (subject) {
|
if (subject) {
|
||||||
for (i = 0 ; i < subject->nidentity ; i++) {
|
for (i = 0; i < subject->nidentity; i++) {
|
||||||
VIR_FREE(subject->identities[i].type);
|
VIR_FREE(subject->identities[i].type);
|
||||||
VIR_FREE(subject->identities[i].name);
|
VIR_FREE(subject->identities[i].name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user