]> xenbits.xensource.com Git - libvirt.git/commitdiff
src/xen: Remove the whitespace before ';'
authorOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 07:21:21 +0000 (15:21 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 15:41:44 +0000 (23:41 +0800)
src/xen/xen_driver.c
src/xen/xen_driver.h
src/xen/xen_hypervisor.c
src/xen/xen_inotify.c
src/xen/xm_internal.c
src/xen/xs_internal.c

index 2fda634f2196a4fba66cce0560938291f45aaad2..cc6e48673386cdef2979764dd476306d1528eeca 100644 (file)
@@ -223,8 +223,8 @@ xenDomainUsedCpus(virDomainPtr dom)
 
     if ((ncpus = xenUnifiedDomainGetVcpus(dom, cpuinfo, nb_vcpu,
                                           cpumap, cpumaplen)) >= 0) {
-        for (n = 0 ; n < ncpus ; n++) {
-            for (m = 0 ; m < priv->nbNodeCpus; m++) {
+        for (n = 0; n < ncpus; n++) {
+            for (m = 0; m < priv->nbNodeCpus; m++) {
                 bool used;
                 ignore_value(virBitmapGetBit(cpulist, m, &used));
                 if ((!used) &&
@@ -2622,7 +2622,7 @@ xenUnifiedRemoveDomainInfo(xenUnifiedDomainInfoListPtr list,
                            unsigned char *uuid)
 {
     int i;
-    for (i = 0 ; i < list->count ; i++) {
+    for (i = 0; i < list->count; i++) {
         if (list->doms[i]->id == id &&
             STREQ(list->doms[i]->name, name) &&
             !memcmp(list->doms[i]->uuid, uuid, VIR_UUID_BUFLEN)) {
index e33610da80046668bd557264eca6bbe7c65a9886..3c7a8cd5b60a5050ac3694eb01a364fcd4c66c30 100644 (file)
@@ -172,7 +172,7 @@ struct _xenUnifiedPrivate {
     int inotifyFD;
     int inotifyWatch;
 
-    int  useXenConfigCache ;
+    int  useXenConfigCache;
     xenUnifiedDomainInfoListPtr configInfoList;
 # endif
 
index fa2171752937e3858fe521865e64a34fc74ec892..3d3709483bf7ef2adeb74b5bdb5bc910e4b412ed 100644 (file)
@@ -2390,7 +2390,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
                 }
 
                 /* 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 &&
                         guest_archs[i].hvm == hvm) {
                         break;
@@ -2639,7 +2639,7 @@ xenHypervisorLookupDomainByUUID(virConnectPtr conn, const unsigned char *uuid)
     }
 
     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) {
             id = XEN_GETDOMAININFOLIST_DOMAIN(dominfos, i);
             break;
index e2b5e48ab8b9c2e24c09d26d0157212e576ad48d..5df32485445ba221c53f2e034af78c13a0c54068 100644 (file)
@@ -101,7 +101,7 @@ xenInotifyXendDomainsDirLookup(virConnectPtr conn,
         /* If we are here, the domain has gone away.
            search for, and create a domain from the stored
            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)) {
                 *name = strdup(priv->configInfoList->doms[i]->name);
                 if (!*name) {
@@ -175,7 +175,7 @@ xenInotifyXendDomainsDirRemoveEntry(virConnectPtr conn, const char *fname)
     }
 
     /* 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)) {
             VIR_FREE(priv->configInfoList->doms[i]->name);
             VIR_FREE(priv->configInfoList->doms[i]);
index 39a43febe62a9f89feac5f45e08827a499a09711..092d92def2317b89ba4d097e878043a9675638ef 100644 (file)
@@ -1355,7 +1355,7 @@ xenXMDomainDetachDeviceFlags(virConnectPtr conn,
     switch (dev->type) {
     case VIR_DOMAIN_DEVICE_DISK:
     {
-        for (i = 0 ; i < def->ndisks ; i++) {
+        for (i = 0; i < def->ndisks; i++) {
             if (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:
     {
-        for (i = 0 ; i < def->nnets ; i++) {
+        for (i = 0; i < def->nnets; i++) {
             if (!virMacAddrCmp(&def->nets[i]->mac, &dev->data.net->mac)) {
                 virDomainNetDefFree(def->nets[i]);
                 if (i < (def->nnets - 1))
index 496c30bd745fc7bf3c28f8279f2616b527141544..712ee821e81631f18b52e65f5a1e1bd13dba137a 100644 (file)
@@ -718,7 +718,7 @@ xenStoreRemoveWatch(virConnectPtr conn, const char *path, const char *token)
     if (!list)
         return -1;
 
-    for (i = 0 ; i < list->count ; i++) {
+    for (i = 0; i < list->count; i++) {
         if (STREQ(list->watches[i]->path, path) &&
             STREQ(list->watches[i]->token, token)) {
 
@@ -757,7 +757,7 @@ xenStoreFindWatch(xenStoreWatchListPtr list,
                   const char *token)
 {
     int i;
-    for (i = 0 ; i < list->count ; i++)
+    for (i = 0; i < list->count; i++)
         if (STREQ(path, list->watches[i]->path) &&
             STREQ(token, list->watches[i]->token))
             return list->watches[i];
@@ -841,9 +841,9 @@ retry:
     }
 
     missing = 0;
-    for (i=0 ; i < new_domain_cnt ; i++) {
+    for (i=0; i < new_domain_cnt; i++) {
         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]) {
                 found = 1;
                 break;
@@ -925,9 +925,9 @@ retry:
     }
 
     removed = 0;
-    for (j=0 ; j < priv->activeDomainList->count ; j++) {
+    for (j=0; j < priv->activeDomainList->count; j++) {
         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]) {
                 found = 1;
                 break;