[PATCH 06/29] libxl: Add spaces after casts

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

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/libxl/libxl_conf.c      | 2 +-
 src/libxl/libxl_domain.c    | 6 +++---
 src/libxl/libxl_driver.c    | 2 +-
 src/libxl/libxl_logger.c    | 2 +-
 src/libxl/libxl_migration.c | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 452a77f3b8c4..2a9b4e3beae0 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -1692,7 +1692,7 @@ libxlDriverConfigNew(void)
         goto error;
     }
 
-    if (libxl_ctx_alloc(&cfg->ctx, LIBXL_VERSION, 0, (xentoollog_logger *)cfg->logger)) {
+    if (libxl_ctx_alloc(&cfg->ctx, LIBXL_VERSION, 0, (xentoollog_logger *) cfg->logger)) {
         VIR_ERROR(_("cannot initialize libxenlight context, probably not "
                     "running in a Xen Dom0, disabling driver"));
         goto error;
diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c
index d4859d670793..19d91f51ee5e 100644
--- a/src/libxl/libxl_domain.c
+++ b/src/libxl/libxl_domain.c
@@ -593,7 +593,7 @@ libxlDomainEventHandler(void *data, VIR_LIBXL_EVENT_CONST libxl_event *event)
         goto error;
 
     shutdown_info->driver = driver;
-    shutdown_info->event = (libxl_event *)event;
+    shutdown_info->event = (libxl_event *) event;
     if (virThreadCreate(&thread, false, libxlDomainShutdownThread,
                         shutdown_info) < 0) {
         /*
@@ -611,7 +611,7 @@ libxlDomainEventHandler(void *data, VIR_LIBXL_EVENT_CONST libxl_event *event)
  error:
     cfg = libxlDriverConfigGet(driver);
     /* Cast away any const */
-    libxl_event_free(cfg->ctx, (libxl_event *)event);
+    libxl_event_free(cfg->ctx, (libxl_event *) event);
     virObjectUnref(cfg);
     VIR_FREE(shutdown_info);
 }
@@ -891,7 +891,7 @@ libxlDomainSetVcpuAffinities(libxlDriverPrivatePtr driver, virDomainObjPtr vm)
         if (!cpumask)
             continue;
 
-        if (virBitmapToData(cpumask, &map.map, (int *)&map.size) < 0)
+        if (virBitmapToData(cpumask, &map.map, (int *) &map.size) < 0)
             goto cleanup;
 
         if (libxl_set_vcpuaffinity(cfg->ctx, vm->def->id, i, &map) != 0) {
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 55a93a489beb..5f838945c56c 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -4452,7 +4452,7 @@ libxlDomainGetSchedulerType(virDomainPtr dom, int *nparams)
 
     if (nparams)
         *nparams = 0;
-    switch ((int)sched_id) {
+    switch ((int) sched_id) {
     case LIBXL_SCHEDULER_SEDF:
         name = "sedf";
         break;
diff --git a/src/libxl/libxl_logger.c b/src/libxl/libxl_logger.c
index 40404826fc3b..e3fb51af0931 100644
--- a/src/libxl/libxl_logger.c
+++ b/src/libxl/libxl_logger.c
@@ -66,7 +66,7 @@ libvirt_vmessage(xentoollog_logger *logger_in,
                  const char *format,
                  va_list args)
 {
-    xentoollog_logger_libvirt *lg = (xentoollog_logger_libvirt *)logger_in;
+    xentoollog_logger_libvirt *lg = (xentoollog_logger_libvirt *) logger_in;
     FILE *logFile = lg->defaultLogFile;
     char timestamp[VIR_TIME_STRING_BUFLEN];
     char *message = NULL;
diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c
index d7b494b39293..d4ae1946eb0c 100644
--- a/src/libxl/libxl_migration.c
+++ b/src/libxl/libxl_migration.c
@@ -836,7 +836,7 @@ struct _libxlTunnelMigrationThread {
  */
 static void libxlTunnel3MigrationSrcFunc(void *arg)
 {
-    libxlTunnelMigrationThread *data = (libxlTunnelMigrationThread *)arg;
+    libxlTunnelMigrationThread *data = (libxlTunnelMigrationThread *) arg;
     char *buffer = NULL;
     struct pollfd fds[1];
     int timeout = -1;
-- 
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