if ((ncpus = virDomainGetVcpus(dom,
cpuinfo, info.nrVirtCpu,
cpumaps, cpumaplen)) >= 0) {
- for (n = 0 ; n < ncpus ; n++) {
+ for (n = 0; n < ncpus; n++) {
vshPrint(ctl, "%-15s %d\n", _("VCPU:"), n);
vshPrint(ctl, "%-15s %d\n", _("CPU:"), cpuinfo[n].cpu);
vshPrint(ctl, "%-15s %s\n", _("State:"),
char *lower = vshStrdup(ctl, signame);
char *tmp = lower;
- for (i = 0 ; signame[i] ; i++)
+ for (i = 0; signame[i]; i++)
lower[i] = c_tolower(signame[i]);
if (virStrToLong_i(lower, NULL, 10, &signum) >= 0)
}
_exit(0);
} else {
- for (i = 0 ; i < nfdlist ; i++)
+ for (i = 0; i < nfdlist; i++)
VIR_FORCE_CLOSE(fdlist[i]);
VIR_FREE(fdlist);
if (virProcessWait(pid, NULL) < 0)
list->ndevices = 0;
/* get the node devices */
- for (i = 0; i < ndevices ; i++) {
+ for (i = 0; i < ndevices; i++) {
if (!(device = virNodeDeviceLookupByName(ctl->conn, names[i])))
continue;
list->devices[list->ndevices++] = device;
}
}
- for (i = 0 ; i < list->ndevices; i++) {
+ for (i = 0; i < list->ndevices; i++) {
if (parents[i] == NULL &&
vshTreePrint(ctl, vshNodeListLookup, &arrays,
list->ndevices, i) < 0)
ret = false;
}
- for (i = 0 ; i < list->ndevices; i++)
+ for (i = 0; i < list->ndevices; i++)
VIR_FREE(parents[i]);
VIR_FREE(parents);
for (i = 0; i < list->ndevices; i++)
list->nfilters = 0;
/* get the network filters */
- for (i = 0; i < nfilters ; i++) {
+ for (i = 0; i < nfilters; i++) {
if (!(filter = virNWFilterLookupByName(ctl->conn, names[i])))
continue;
list->filters[list->nfilters++] = filter;
list->nsecrets = 0;
/* get the secrets */
- for (i = 0; i < nsecrets ; i++) {
+ for (i = 0; i < nsecrets; i++) {
if (!(secret = virSecretLookupByUUIDString(ctl->conn, uuids[i])))
continue;
list->secrets[list->nsecrets++] = secret;
}
/* Determine the index of the last child device */
- for (i = 0 ; i < num_devices ; i++) {
+ for (i = 0; i < num_devices; i++) {
const char *parent = (lookup)(i, true, opaque);
if (parent && STREQ(parent, dev))
virBufferAddLit(indent, " ");
if (virBufferError(indent))
goto cleanup;
- for (i = 0 ; i < num_devices ; i++) {
+ for (i = 0; i < num_devices; i++) {
const char *parent = (lookup)(i, true, opaque);
if (parent && STREQ(parent, dev) &&