]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
xenconfig/: Remove spaces after casts
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 25 Apr 2018 12:42:34 +0000 (14:42 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 3 May 2018 20:31:37 +0000 (22:31 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/xenconfig/xen_common.c
src/xenconfig/xen_xl.c

index 7db365f36341bc95b4d08c59a17b66223be4b668..a2b0708ee309f5399cb328e344bf44a87539d780 100644 (file)
@@ -268,7 +268,7 @@ xenConfigSetInt(virConfPtr conf, const char *setting, long long l)
 {
     virConfValuePtr value = NULL;
 
-    if ((long) l != l) {
+    if ((long)l != l) {
         virReportError(VIR_ERR_OVERFLOW, _("failed to store %lld to %s"),
                        l, setting);
         return -1;
@@ -1673,7 +1673,7 @@ xenFormatCPUFeatures(virConfPtr conf, virDomainDefPtr def)
     }
 
     for (i = 0; i < def->clock.ntimers; i++) {
-        switch ((virDomainTimerNameType) def->clock.timers[i]->name) {
+        switch ((virDomainTimerNameType)def->clock.timers[i]->name) {
         case VIR_DOMAIN_TIMER_NAME_TSC:
             switch (def->clock.timers[i]->mode) {
             case VIR_DOMAIN_TIMER_MODE_NATIVE:
index 6dcaba98a4399d85ce51a8b26df56c44d809ebde..35d52f8a34c125ccfd0dbcc4493bd4db410955ab 100644 (file)
@@ -1601,7 +1601,7 @@ xenFormatXLDiskSrc(virStorageSourcePtr src, char **srcstr)
     if (virStorageSourceIsEmpty(src))
         return 0;
 
-    switch ((virStorageType) actualType) {
+    switch ((virStorageType)actualType) {
     case VIR_STORAGE_TYPE_BLOCK:
     case VIR_STORAGE_TYPE_FILE:
     case VIR_STORAGE_TYPE_DIR: