[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 10/31] src/openvz: Remove the whitespace before '; '



---
 src/openvz/openvz_driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 33ba624..1d404e7 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -918,7 +918,7 @@ openvzDomainSetNetworkConfig(virConnectPtr conn,
     int first = 1;
     struct openvz_driver *driver =  conn->privateData;
 
-    for (i = 0 ; i < def->nnets ; i++) {
+    for (i = 0; i < def->nnets; i++) {
         if (driver->version < VZCTL_BRIDGE_MIN_VERSION &&
             def->nets[i]->type == VIR_DOMAIN_NET_TYPE_BRIDGE) {
             if (first)
@@ -1621,7 +1621,7 @@ out:
     VIR_FORCE_CLOSE(outfd);
     virCommandFree(cmd);
     if (rc < 0) {
-        for (; got >= 0 ; got--)
+        for (; got >= 0; got--)
             VIR_FREE(names[got]);
     }
     return rc;
@@ -1990,7 +1990,7 @@ openvzDomainInterfaceStats(virDomainPtr dom,
     }
 
     /* Check the path is one of the domain's network interfaces. */
-    for (i = 0 ; i < vm->def->nnets ; i++) {
+    for (i = 0; i < vm->def->nnets; i++) {
         if (vm->def->nets[i]->ifname &&
             STREQ(vm->def->nets[i]->ifname, path)) {
             ret = 0;
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]