mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 22:15:20 +00:00
src/xen: Remove the whitespace before ';'
This commit is contained in:
parent
9b32d2dba0
commit
0c38d36dcf
@ -223,8 +223,8 @@ xenDomainUsedCpus(virDomainPtr dom)
|
|||||||
|
|
||||||
if ((ncpus = xenUnifiedDomainGetVcpus(dom, cpuinfo, nb_vcpu,
|
if ((ncpus = xenUnifiedDomainGetVcpus(dom, cpuinfo, nb_vcpu,
|
||||||
cpumap, cpumaplen)) >= 0) {
|
cpumap, cpumaplen)) >= 0) {
|
||||||
for (n = 0 ; n < ncpus ; n++) {
|
for (n = 0; n < ncpus; n++) {
|
||||||
for (m = 0 ; m < priv->nbNodeCpus; m++) {
|
for (m = 0; m < priv->nbNodeCpus; m++) {
|
||||||
bool used;
|
bool used;
|
||||||
ignore_value(virBitmapGetBit(cpulist, m, &used));
|
ignore_value(virBitmapGetBit(cpulist, m, &used));
|
||||||
if ((!used) &&
|
if ((!used) &&
|
||||||
@ -2622,7 +2622,7 @@ xenUnifiedRemoveDomainInfo(xenUnifiedDomainInfoListPtr list,
|
|||||||
unsigned char *uuid)
|
unsigned char *uuid)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0 ; i < list->count ; i++) {
|
for (i = 0; i < list->count; i++) {
|
||||||
if (list->doms[i]->id == id &&
|
if (list->doms[i]->id == id &&
|
||||||
STREQ(list->doms[i]->name, name) &&
|
STREQ(list->doms[i]->name, name) &&
|
||||||
!memcmp(list->doms[i]->uuid, uuid, VIR_UUID_BUFLEN)) {
|
!memcmp(list->doms[i]->uuid, uuid, VIR_UUID_BUFLEN)) {
|
||||||
|
@ -172,7 +172,7 @@ struct _xenUnifiedPrivate {
|
|||||||
int inotifyFD;
|
int inotifyFD;
|
||||||
int inotifyWatch;
|
int inotifyWatch;
|
||||||
|
|
||||||
int useXenConfigCache ;
|
int useXenConfigCache;
|
||||||
xenUnifiedDomainInfoListPtr configInfoList;
|
xenUnifiedDomainInfoListPtr configInfoList;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@ -2390,7 +2390,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Search for existing matching (model,hvm) tuple */
|
/* Search for existing matching (model,hvm) tuple */
|
||||||
for (i = 0 ; i < nr_guest_archs ; i++) {
|
for (i = 0; i < nr_guest_archs; i++) {
|
||||||
if (guest_archs[i].arch == arch &&
|
if (guest_archs[i].arch == arch &&
|
||||||
guest_archs[i].hvm == hvm) {
|
guest_archs[i].hvm == hvm) {
|
||||||
break;
|
break;
|
||||||
@ -2639,7 +2639,7 @@ xenHypervisorLookupDomainByUUID(virConnectPtr conn, const unsigned char *uuid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
id = -1;
|
id = -1;
|
||||||
for (i = 0 ; i < nids ; i++) {
|
for (i = 0; i < nids; i++) {
|
||||||
if (memcmp(XEN_GETDOMAININFOLIST_UUID(dominfos, i), uuid, VIR_UUID_BUFLEN) == 0) {
|
if (memcmp(XEN_GETDOMAININFOLIST_UUID(dominfos, i), uuid, VIR_UUID_BUFLEN) == 0) {
|
||||||
id = XEN_GETDOMAININFOLIST_DOMAIN(dominfos, i);
|
id = XEN_GETDOMAININFOLIST_DOMAIN(dominfos, i);
|
||||||
break;
|
break;
|
||||||
|
@ -101,7 +101,7 @@ xenInotifyXendDomainsDirLookup(virConnectPtr conn,
|
|||||||
/* If we are here, the domain has gone away.
|
/* If we are here, the domain has gone away.
|
||||||
search for, and create a domain from the stored
|
search for, and create a domain from the stored
|
||||||
list info */
|
list info */
|
||||||
for (i = 0 ; i < priv->configInfoList->count ; i++) {
|
for (i = 0; i < priv->configInfoList->count; i++) {
|
||||||
if (!memcmp(rawuuid, priv->configInfoList->doms[i]->uuid, VIR_UUID_BUFLEN)) {
|
if (!memcmp(rawuuid, priv->configInfoList->doms[i]->uuid, VIR_UUID_BUFLEN)) {
|
||||||
*name = strdup(priv->configInfoList->doms[i]->name);
|
*name = strdup(priv->configInfoList->doms[i]->name);
|
||||||
if (!*name) {
|
if (!*name) {
|
||||||
@ -175,7 +175,7 @@ xenInotifyXendDomainsDirRemoveEntry(virConnectPtr conn, const char *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* match and remove on uuid */
|
/* match and remove on uuid */
|
||||||
for (i = 0 ; i < priv->configInfoList->count ; i++) {
|
for (i = 0; i < priv->configInfoList->count; i++) {
|
||||||
if (!memcmp(uuid, priv->configInfoList->doms[i]->uuid, VIR_UUID_BUFLEN)) {
|
if (!memcmp(uuid, priv->configInfoList->doms[i]->uuid, VIR_UUID_BUFLEN)) {
|
||||||
VIR_FREE(priv->configInfoList->doms[i]->name);
|
VIR_FREE(priv->configInfoList->doms[i]->name);
|
||||||
VIR_FREE(priv->configInfoList->doms[i]);
|
VIR_FREE(priv->configInfoList->doms[i]);
|
||||||
|
@ -1355,7 +1355,7 @@ xenXMDomainDetachDeviceFlags(virConnectPtr conn,
|
|||||||
switch (dev->type) {
|
switch (dev->type) {
|
||||||
case VIR_DOMAIN_DEVICE_DISK:
|
case VIR_DOMAIN_DEVICE_DISK:
|
||||||
{
|
{
|
||||||
for (i = 0 ; i < def->ndisks ; i++) {
|
for (i = 0; i < def->ndisks; i++) {
|
||||||
if (def->disks[i]->dst &&
|
if (def->disks[i]->dst &&
|
||||||
dev->data.disk->dst &&
|
dev->data.disk->dst &&
|
||||||
STREQ(def->disks[i]->dst, dev->data.disk->dst)) {
|
STREQ(def->disks[i]->dst, dev->data.disk->dst)) {
|
||||||
@ -1374,7 +1374,7 @@ xenXMDomainDetachDeviceFlags(virConnectPtr conn,
|
|||||||
|
|
||||||
case VIR_DOMAIN_DEVICE_NET:
|
case VIR_DOMAIN_DEVICE_NET:
|
||||||
{
|
{
|
||||||
for (i = 0 ; i < def->nnets ; i++) {
|
for (i = 0; i < def->nnets; i++) {
|
||||||
if (!virMacAddrCmp(&def->nets[i]->mac, &dev->data.net->mac)) {
|
if (!virMacAddrCmp(&def->nets[i]->mac, &dev->data.net->mac)) {
|
||||||
virDomainNetDefFree(def->nets[i]);
|
virDomainNetDefFree(def->nets[i]);
|
||||||
if (i < (def->nnets - 1))
|
if (i < (def->nnets - 1))
|
||||||
|
@ -718,7 +718,7 @@ xenStoreRemoveWatch(virConnectPtr conn, const char *path, const char *token)
|
|||||||
if (!list)
|
if (!list)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0 ; i < list->count ; i++) {
|
for (i = 0; i < list->count; i++) {
|
||||||
if (STREQ(list->watches[i]->path, path) &&
|
if (STREQ(list->watches[i]->path, path) &&
|
||||||
STREQ(list->watches[i]->token, token)) {
|
STREQ(list->watches[i]->token, token)) {
|
||||||
|
|
||||||
@ -757,7 +757,7 @@ xenStoreFindWatch(xenStoreWatchListPtr list,
|
|||||||
const char *token)
|
const char *token)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0 ; i < list->count ; i++)
|
for (i = 0; i < list->count; i++)
|
||||||
if (STREQ(path, list->watches[i]->path) &&
|
if (STREQ(path, list->watches[i]->path) &&
|
||||||
STREQ(token, list->watches[i]->token))
|
STREQ(token, list->watches[i]->token))
|
||||||
return list->watches[i];
|
return list->watches[i];
|
||||||
@ -841,9 +841,9 @@ retry:
|
|||||||
}
|
}
|
||||||
|
|
||||||
missing = 0;
|
missing = 0;
|
||||||
for (i=0 ; i < new_domain_cnt ; i++) {
|
for (i=0; i < new_domain_cnt; i++) {
|
||||||
found = 0;
|
found = 0;
|
||||||
for (j = 0 ; j < priv->activeDomainList->count ; j++) {
|
for (j = 0; j < priv->activeDomainList->count; j++) {
|
||||||
if (priv->activeDomainList->doms[j]->id == new_domids[i]) {
|
if (priv->activeDomainList->doms[j]->id == new_domids[i]) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
@ -925,9 +925,9 @@ retry:
|
|||||||
}
|
}
|
||||||
|
|
||||||
removed = 0;
|
removed = 0;
|
||||||
for (j=0 ; j < priv->activeDomainList->count ; j++) {
|
for (j=0; j < priv->activeDomainList->count; j++) {
|
||||||
found = 0;
|
found = 0;
|
||||||
for (i=0 ; i < new_domain_cnt ; i++) {
|
for (i=0; i < new_domain_cnt; i++) {
|
||||||
if (priv->activeDomainList->doms[j]->id == new_domids[i]) {
|
if (priv->activeDomainList->doms[j]->id == new_domids[i]) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user