mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tools: Remove the whitespace before ";"
This commit is contained in:
parent
f0e752a438
commit
c96f6ae845
@ -5295,7 +5295,7 @@ cmdVcpuinfo(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if ((ncpus = virDomainGetVcpus(dom,
|
if ((ncpus = virDomainGetVcpus(dom,
|
||||||
cpuinfo, info.nrVirtCpu,
|
cpuinfo, info.nrVirtCpu,
|
||||||
cpumaps, cpumaplen)) >= 0) {
|
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", _("VCPU:"), n);
|
||||||
vshPrint(ctl, "%-15s %d\n", _("CPU:"), cpuinfo[n].cpu);
|
vshPrint(ctl, "%-15s %d\n", _("CPU:"), cpuinfo[n].cpu);
|
||||||
vshPrint(ctl, "%-15s %s\n", _("State:"),
|
vshPrint(ctl, "%-15s %s\n", _("State:"),
|
||||||
@ -6819,7 +6819,7 @@ static int getSignalNumber(vshControl *ctl, const char *signame)
|
|||||||
char *lower = vshStrdup(ctl, signame);
|
char *lower = vshStrdup(ctl, signame);
|
||||||
char *tmp = lower;
|
char *tmp = lower;
|
||||||
|
|
||||||
for (i = 0 ; signame[i] ; i++)
|
for (i = 0; signame[i]; i++)
|
||||||
lower[i] = c_tolower(signame[i]);
|
lower[i] = c_tolower(signame[i]);
|
||||||
|
|
||||||
if (virStrToLong_i(lower, NULL, 10, &signum) >= 0)
|
if (virStrToLong_i(lower, NULL, 10, &signum) >= 0)
|
||||||
@ -7808,7 +7808,7 @@ cmdLxcEnterNamespace(vshControl *ctl, const vshCmd *cmd)
|
|||||||
}
|
}
|
||||||
_exit(0);
|
_exit(0);
|
||||||
} else {
|
} else {
|
||||||
for (i = 0 ; i < nfdlist ; i++)
|
for (i = 0; i < nfdlist; i++)
|
||||||
VIR_FORCE_CLOSE(fdlist[i]);
|
VIR_FORCE_CLOSE(fdlist[i]);
|
||||||
VIR_FREE(fdlist);
|
VIR_FREE(fdlist);
|
||||||
if (virProcessWait(pid, NULL) < 0)
|
if (virProcessWait(pid, NULL) < 0)
|
||||||
|
@ -277,7 +277,7 @@ fallback:
|
|||||||
list->ndevices = 0;
|
list->ndevices = 0;
|
||||||
|
|
||||||
/* get the node devices */
|
/* get the node devices */
|
||||||
for (i = 0; i < ndevices ; i++) {
|
for (i = 0; i < ndevices; i++) {
|
||||||
if (!(device = virNodeDeviceLookupByName(ctl->conn, names[i])))
|
if (!(device = virNodeDeviceLookupByName(ctl->conn, names[i])))
|
||||||
continue;
|
continue;
|
||||||
list->devices[list->ndevices++] = device;
|
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 &&
|
if (parents[i] == NULL &&
|
||||||
vshTreePrint(ctl, vshNodeListLookup, &arrays,
|
vshTreePrint(ctl, vshNodeListLookup, &arrays,
|
||||||
list->ndevices, i) < 0)
|
list->ndevices, i) < 0)
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0 ; i < list->ndevices; i++)
|
for (i = 0; i < list->ndevices; i++)
|
||||||
VIR_FREE(parents[i]);
|
VIR_FREE(parents[i]);
|
||||||
VIR_FREE(parents);
|
VIR_FREE(parents);
|
||||||
for (i = 0; i < list->ndevices; i++)
|
for (i = 0; i < list->ndevices; i++)
|
||||||
|
@ -309,7 +309,7 @@ fallback:
|
|||||||
list->nfilters = 0;
|
list->nfilters = 0;
|
||||||
|
|
||||||
/* get the network filters */
|
/* get the network filters */
|
||||||
for (i = 0; i < nfilters ; i++) {
|
for (i = 0; i < nfilters; i++) {
|
||||||
if (!(filter = virNWFilterLookupByName(ctl->conn, names[i])))
|
if (!(filter = virNWFilterLookupByName(ctl->conn, names[i])))
|
||||||
continue;
|
continue;
|
||||||
list->filters[list->nfilters++] = filter;
|
list->filters[list->nfilters++] = filter;
|
||||||
|
@ -439,7 +439,7 @@ fallback:
|
|||||||
list->nsecrets = 0;
|
list->nsecrets = 0;
|
||||||
|
|
||||||
/* get the secrets */
|
/* get the secrets */
|
||||||
for (i = 0; i < nsecrets ; i++) {
|
for (i = 0; i < nsecrets; i++) {
|
||||||
if (!(secret = virSecretLookupByUUIDString(ctl->conn, uuids[i])))
|
if (!(secret = virSecretLookupByUUIDString(ctl->conn, uuids[i])))
|
||||||
continue;
|
continue;
|
||||||
list->secrets[list->nsecrets++] = secret;
|
list->secrets[list->nsecrets++] = secret;
|
||||||
|
@ -610,7 +610,7 @@ vshTreePrintInternal(vshControl *ctl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Determine the index of the last child device */
|
/* 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);
|
const char *parent = (lookup)(i, true, opaque);
|
||||||
|
|
||||||
if (parent && STREQ(parent, dev))
|
if (parent && STREQ(parent, dev))
|
||||||
@ -625,7 +625,7 @@ vshTreePrintInternal(vshControl *ctl,
|
|||||||
virBufferAddLit(indent, " ");
|
virBufferAddLit(indent, " ");
|
||||||
if (virBufferError(indent))
|
if (virBufferError(indent))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
for (i = 0 ; i < num_devices ; i++) {
|
for (i = 0; i < num_devices; i++) {
|
||||||
const char *parent = (lookup)(i, true, opaque);
|
const char *parent = (lookup)(i, true, opaque);
|
||||||
|
|
||||||
if (parent && STREQ(parent, dev) &&
|
if (parent && STREQ(parent, dev) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user