--- tools/virsh-domain.c | 6 +++--- tools/virsh-nodedev.c | 6 +++--- tools/virsh-nwfilter.c | 2 +- tools/virsh-secret.c | 2 +- tools/virsh.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index bb94ac1..bc42408 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -5295,7 +5295,7 @@ cmdVcpuinfo(vshControl *ctl, const vshCmd *cmd) 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:"), @@ -6819,7 +6819,7 @@ static int getSignalNumber(vshControl *ctl, const char *signame) 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) @@ -7808,7 +7808,7 @@ cmdLxcEnterNamespace(vshControl *ctl, const vshCmd *cmd) } _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) diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c index 592fa44..3657c5f 100644 --- a/tools/virsh-nodedev.c +++ b/tools/virsh-nodedev.c @@ -277,7 +277,7 @@ fallback: 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; @@ -481,14 +481,14 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) } } - 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++) diff --git a/tools/virsh-nwfilter.c b/tools/virsh-nwfilter.c index 5a360c2..c7a259a 100644 --- a/tools/virsh-nwfilter.c +++ b/tools/virsh-nwfilter.c @@ -309,7 +309,7 @@ fallback: 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; diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 044629d..fb10119 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -439,7 +439,7 @@ fallback: 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; diff --git a/tools/virsh.c b/tools/virsh.c index bb79245..ecb7bd4 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -610,7 +610,7 @@ vshTreePrintInternal(vshControl *ctl, } /* 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)) @@ -625,7 +625,7 @@ vshTreePrintInternal(vshControl *ctl, 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) && -- 1.8.1.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list