From nobody Wed May 14 13:22:48 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 1524487565107325.9999428766723; Mon, 23 Apr 2018 05:46:05 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 670D581DFE; Mon, 23 Apr 2018 12:46:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2578077DB5; Mon, 23 Apr 2018 12:46:03 +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 BD4394CAA4; Mon, 23 Apr 2018 12:46:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3NCjDQQ012003 for ; Mon, 23 Apr 2018 08:45:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6267C83B91; Mon, 23 Apr 2018 12:45:13 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2153C83B88 for ; Mon, 23 Apr 2018 12:45:09 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id CF8A6120073 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:37 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 09/29] lxc: 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 23 Apr 2018 12:46:04 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- src/lxc/lxc_container.c | 4 ++-- src/lxc/lxc_controller.c | 4 ++-- src/lxc/lxc_fuse.c | 2 +- src/lxc/lxc_process.c | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 665b93a0accf..8cd177556af1 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -232,7 +232,7 @@ static virCommandPtr lxcContainerBuildInitCmd(virDomain= DefPtr vmDef, cmd =3D virCommandNew(vmDef->os.init); =20 if (vmDef->os.initargv && vmDef->os.initargv[0]) - virCommandAddArgSet(cmd, (const char **)vmDef->os.initargv); + virCommandAddArgSet(cmd, (const char **) vmDef->os.initargv); =20 virCommandAddEnvString(cmd, "PATH=3D/bin:/sbin"); virCommandAddEnvString(cmd, "TERM=3Dlinux"); @@ -2104,7 +2104,7 @@ static int lxcContainerDropCapabilities(virDomainDefP= tr def ATTRIBUTE_UNUSED, static int lxcAttachNS(int *ns_fd) { if (ns_fd && - virProcessSetNamespaces((size_t)VIR_LXC_DOMAIN_NAMESPACE_LAST, + virProcessSetNamespaces((size_t) VIR_LXC_DOMAIN_NAMESPACE_LAST, ns_fd) < 0) return -1; return 0; diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 507bffda09ba..fc16f427fc6b 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -1231,7 +1231,7 @@ static void virLXCControllerConsoleIO(int watch, int = fd, int events, void *opaqu if (done > 0) { *len +=3D done; } else { - VIR_DEBUG("Read fd %d done %d errno %d", fd, (int)done, errno); + VIR_DEBUG("Read fd %d done %d errno %d", fd, (int) done, errno= ); } } =20 @@ -1260,7 +1260,7 @@ static void virLXCControllerConsoleIO(int watch, int = fd, int events, void *opaqu memmove(buf, buf + done, (*len - done)); *len -=3D done; } else { - VIR_DEBUG("Write fd %d done %d errno %d", fd, (int)done, errno= ); + VIR_DEBUG("Write fd %d done %d errno %d", fd, (int) done, errn= o); } } =20 diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 60d41243a99e..b8f7d17275de 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -356,7 +356,7 @@ int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def) int lxcStartFuse(virLXCFusePtr fuse) { if (virThreadCreate(&fuse->thread, false, lxcFuseRun, - (void *)fuse) < 0) { + (void *) fuse) < 0) { lxcFuseDestroy(fuse); return -1; } diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index e911d88b5636..5be8732ef422 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -168,7 +168,7 @@ static void virLXCProcessCleanup(virLXCDriverPtr driver, virLXCDriverConfigPtr cfg =3D virLXCDriverGetConfig(driver); =20 VIR_DEBUG("Cleanup VM name=3D%s pid=3D%d reason=3D%d", - vm->def->name, (int)vm->pid, (int)reason); + vm->def->name, (int) vm->pid, (int) reason); =20 /* now that we know it's stopped call the hook if present */ if (virHookPresent(VIR_HOOK_DRIVER_LXC)) { @@ -403,7 +403,7 @@ static int virLXCProcessSetupNamespaceName(virConnectPt= r conn, int ns_type, cons } =20 if (virAsprintf(&path, "/proc/%lld/ns/%s", - (long long int)priv->initpid, + (long long int) priv->initpid, nsInfoLocal[ns_type]) < 0) goto cleanup; =20 @@ -833,7 +833,7 @@ int virLXCProcessStop(virLXCDriverPtr driver, virLXCDomainObjPrivatePtr priv; =20 VIR_DEBUG("Stopping VM name=3D%s pid=3D%d reason=3D%d", - vm->def->name, (int)vm->pid, (int)reason); + vm->def->name, (int) vm->pid, (int) reason); if (!virDomainObjIsActive(vm)) { VIR_DEBUG("VM '%s' not active", vm->def->name); return 0; @@ -890,7 +890,7 @@ int virLXCProcessStop(virLXCDriverPtr driver, * libvirt_lxc process */ if (virProcessKillPainfully(vm->pid, true) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Processes %d refused to die"), (int)vm->pid); + _("Processes %d refused to die"), (int) vm->pid= ); return -1; } } @@ -1115,7 +1115,7 @@ virLXCProcessReadLogOutput(virDomainObjPtr vm, if (lseek(fd, pos, SEEK_SET) < 0) { virReportSystemError(errno, _("Unable to seek log file %s to %llu"), - logfile, (unsigned long long)pos); + logfile, (unsigned long long) pos); VIR_FORCE_CLOSE(fd); return -1; } --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list