From nobody Wed May 14 12:54:24 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1524487530391487.7245007235563; Mon, 23 Apr 2018 05:45:30 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CA6513002A60; Mon, 23 Apr 2018 12:45:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8292378DC7; Mon, 23 Apr 2018 12:45:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 28FC4180BAD8; Mon, 23 Apr 2018 12:45:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3NCjAW7011871 for ; Mon, 23 Apr 2018 08:45:10 -0400 Received: by smtp.corp.redhat.com (Postfix) id 30E5F2166BC6; Mon, 23 Apr 2018 12:45:10 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E5C6215CDC8 for ; Mon, 23 Apr 2018 12:45:10 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id ACB74120070 for ; Mon, 23 Apr 2018 14:45:07 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 23 Apr 2018 14:44:34 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 06/29] libxl: Add spaces after casts X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 23 Apr 2018 12:45:29 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- 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; } =20 - 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_CON= ST libxl_event *event) goto error; =20 shutdown_info->driver =3D driver; - shutdown_info->event =3D (libxl_event *)event; + shutdown_info->event =3D (libxl_event *) event; if (virThreadCreate(&thread, false, libxlDomainShutdownThread, shutdown_info) < 0) { /* @@ -611,7 +611,7 @@ libxlDomainEventHandler(void *data, VIR_LIBXL_EVENT_CON= ST libxl_event *event) error: cfg =3D 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 driv= er, virDomainObjPtr vm) if (!cpumask) continue; =20 - if (virBitmapToData(cpumask, &map.map, (int *)&map.size) < 0) + if (virBitmapToData(cpumask, &map.map, (int *) &map.size) < 0) goto cleanup; =20 if (libxl_set_vcpuaffinity(cfg->ctx, vm->def->id, i, &map) !=3D 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 *np= arams) =20 if (nparams) *nparams =3D 0; - switch ((int)sched_id) { + switch ((int) sched_id) { case LIBXL_SCHEDULER_SEDF: name =3D "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 =3D (xentoollog_logger_libvirt *)logger_= in; + xentoollog_logger_libvirt *lg =3D (xentoollog_logger_libvirt *) logger= _in; FILE *logFile =3D lg->defaultLogFile; char timestamp[VIR_TIME_STRING_BUFLEN]; char *message =3D 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 =3D (libxlTunnelMigrationThread *)arg; + libxlTunnelMigrationThread *data =3D (libxlTunnelMigrationThread *) ar= g; char *buffer =3D NULL; struct pollfd fds[1]; int timeout =3D -1; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list