[PATCH 25/29] xenconfig: Add spaces after casts

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

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/xenconfig/xen_common.c | 6 +++---
 src/xenconfig/xen_sxpr.c   | 2 +-
 src/xenconfig/xen_xl.c     | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c
index bc4318536305..307823a251d7 100644
--- a/src/xenconfig/xen_common.c
+++ b/src/xenconfig/xen_common.c
@@ -337,7 +337,7 @@ xenParseTimeOffset(virConfPtr conf, virDomainDefPtr def)
         if (xenConfigGetULong(conf, "rtc_timeoffset", &rtc_timeoffset, 0) < 0)
             return -1;
 
-        def->clock.data.variable.adjustment = (int)rtc_timeoffset;
+        def->clock.data.variable.adjustment = (int) rtc_timeoffset;
         def->clock.data.variable.basis = vmlocaltime ?
             VIR_DOMAIN_CLOCK_BASIS_LOCALTIME :
             VIR_DOMAIN_CLOCK_BASIS_UTC;
@@ -612,7 +612,7 @@ xenParseVfb(virConfPtr conf, virDomainDefPtr def)
                 unsigned long vncdisplay;
                 if (xenConfigGetULong(conf, "vncdisplay", &vncdisplay, 0) < 0)
                     goto cleanup;
-                graphics->data.vnc.port = (int)vncdisplay + 5900;
+                graphics->data.vnc.port = (int) vncdisplay + 5900;
             }
 
             if (xenConfigCopyStringOpt(conf, "vnclisten", &listenAddr) < 0)
@@ -1429,7 +1429,7 @@ xenFormatTimeOffset(virConfPtr conf, virDomainDefPtr def)
 
         switch (def->clock.offset) {
         case VIR_DOMAIN_CLOCK_OFFSET_VARIABLE:
-            vmlocaltime = (int)def->clock.data.variable.basis;
+            vmlocaltime = (int) def->clock.data.variable.basis;
             rtc_timeoffset = def->clock.data.variable.adjustment;
             break;
         case VIR_DOMAIN_CLOCK_OFFSET_UTC:
diff --git a/src/xenconfig/xen_sxpr.c b/src/xenconfig/xen_sxpr.c
index e868c05695e3..e085d9755966 100644
--- a/src/xenconfig/xen_sxpr.c
+++ b/src/xenconfig/xen_sxpr.c
@@ -2405,7 +2405,7 @@ xenFormatSxpr(virConnectPtr conn, virDomainDefPtr def)
         int rtc_timeoffset;
         switch (def->clock.offset) {
         case VIR_DOMAIN_CLOCK_OFFSET_VARIABLE:
-            vmlocaltime = (int)def->clock.data.variable.basis;
+            vmlocaltime = (int) def->clock.data.variable.basis;
             rtc_timeoffset = def->clock.data.variable.adjustment;
             break;
         case VIR_DOMAIN_CLOCK_OFFSET_UTC:
diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
index 6dcaba98a439..d8aeefd38942 100644
--- a/src/xenconfig/xen_xl.c
+++ b/src/xenconfig/xen_xl.c
@@ -364,12 +364,12 @@ xenParseXLSpice(virConfPtr conf, virDomainDefPtr def)
 
             if (xenConfigGetULong(conf, "spicetls_port", &port, 0) < 0)
                 goto cleanup;
-            graphics->data.spice.tlsPort = (int)port;
+            graphics->data.spice.tlsPort = (int) port;
 
             if (xenConfigGetULong(conf, "spiceport", &port, 0) < 0)
                 goto cleanup;
 
-            graphics->data.spice.port = (int)port;
+            graphics->data.spice.port = (int) port;
 
             if (!graphics->data.spice.tlsPort &&
                 !graphics->data.spice.port)
@@ -1376,7 +1376,7 @@ xenFormatXLCPUID(virConfPtr conf, virDomainDefPtr def)
     cpuid_pairs[j] = NULL;
 
     if (j > 1) {
-        cpuid_string = virStringListJoin((const char **)cpuid_pairs, ",");
+        cpuid_string = virStringListJoin((const char **) cpuid_pairs, ",");
         if (!cpuid_string)
             goto cleanup;
 
-- 
2.17.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux