提交 c96f6ae8 编写于 作者: O Osier Yang

tools: Remove the whitespace before ";"

上级 f0e752a4
......@@ -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)
......
......@@ -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++)
......
......@@ -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;
......
......@@ -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;
......
......@@ -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) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册