]> xenbits.xensource.com Git - libvirt.git/commitdiff
tools: Remove the whitespace before ";"
authorOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 07:44:53 +0000 (15:44 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 15:41:45 +0000 (23:41 +0800)
tools/virsh-domain.c
tools/virsh-nodedev.c
tools/virsh-nwfilter.c
tools/virsh-secret.c
tools/virsh.c

index bb94ac1ae9d3939a4570d110d254ba335192c5c2..bc4240876780cfdfce483a7ac23b7884741492c9 100644 (file)
@@ -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)
index 592fa4439a36f76de72aa4cb437f1932db7e7241..3657c5f81c465ac7e21c73746545af45f3a196f3 100644 (file)
@@ -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++)
index 5a360c2c70348e13d629dcaf72ccdd90ed3178ec..c7a259adf21411e4fb87190afa95e2031e426c0e 100644 (file)
@@ -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;
index 044629dcf331669d3b2f4c429777d85b3d1c71a9..fb10119849b6c605be033196f4f2185c671981e2 100644 (file)
@@ -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;
index bb79245e56485c9dec31256072e3fd7d1ee3a370..ecb7bd4e65c6a908fdfeb6f80637aa91e8d1ec79 100644 (file)
@@ -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) &&