int i;
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];
EXTRACT_URI_ARG_STR("name", name);
EXTRACT_URI_ARG_STR("command", command);
(xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *)&ret) == -1)
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];
xdr_free((xdrproc_t) xdr_remote_node_get_cells_free_memory_ret, (char *) &ret);
_("unknown authentication type %s"), authtype);
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)
type = want;
}
return NULL;
}
- for (i = 0, n = 0 ; i < ncredtype ; i++) {
+ for (i = 0, n = 0; i < ncredtype; i++) {
int id = remoteAuthCredVir2SASL(credtype[i]);
if (id != 0)
cbs[n++].id = id;
if (!cred)
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)
continue;
(*ncred)++;
if (VIR_ALLOC_N(*cred, *ncred) < 0)
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)
continue;
sasl_interact_t *interact)
{
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)
continue;
interact[ninteract].result = cred[ncred].result;
goto cleanup;
}
- for (ninteract = 0 ; state->interact[ninteract].id != 0 ; ninteract++) {
+ for (ninteract = 0; state->interact[ninteract].id != 0; ninteract++) {
const char *value = NULL;
switch (state->interact[ninteract].id) {
if (!state)
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);
state->ncred = 0;
/* Auth failed. Ask client to obtain it and check again. */
if (auth && auth->cb) {
/* 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)
allowcb = 1;
}
if (VIR_ALLOC_N(subject->identities, msg->subject.subject_len) < 0)
goto no_memory;
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)) ||
!(subject->identities[i].name = strdup(msg->subject.subject_val[i].name)))
goto no_memory;
VIR_FREE(remoteAddr);
}
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].name);
}