From nobody Wed May 14 12:56:47 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 1524487527975616.6442003634351; Mon, 23 Apr 2018 05:45:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59B80356E4; Mon, 23 Apr 2018 12:45:26 +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 118AF81B44; Mon, 23 Apr 2018 12:45:26 +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 A141E180BAD8; Mon, 23 Apr 2018 12:45:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3NCj9an011860 for ; Mon, 23 Apr 2018 08:45:10 -0400 Received: by smtp.corp.redhat.com (Postfix) id D66FE2022DEB; Mon, 23 Apr 2018 12:45:09 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B32152026DFD 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 B82B3120071 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:35 +0200 Message-Id: <76e0015d1e28dede9ec5d0e5cc51a5dd6729fcd1.1524487472.git.mkletzan@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 07/29] locking: 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 23 Apr 2018 12:45:27 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- src/locking/lock_daemon.c | 20 ++++++++++---------- src/locking/lock_daemon_dispatch.c | 2 +- src/locking/lock_driver_sanlock.c | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c index 7afff42246eb..49d3bcea2f8f 100644 --- a/src/locking/lock_daemon.c +++ b/src/locking/lock_daemon.c @@ -692,8 +692,8 @@ virLockDaemonClientFree(void *opaque) =20 VIR_DEBUG("priv=3D%p client=3D%lld owner=3D%lld", priv, - (unsigned long long)priv->clientPid, - (unsigned long long)priv->ownerPid); + (unsigned long long) priv->clientPid, + (unsigned long long) priv->ownerPid); =20 /* If client & owner match, this is the lock holder */ if (priv->clientPid =3D=3D priv->ownerPid) { @@ -730,7 +730,7 @@ virLockDaemonClientFree(void *opaque) break; =20 VIR_WARN("Failed to kill off pid %lld", - (unsigned long long)priv->clientPid); + (unsigned long long) priv->clientPid); } usleep(200 * 1000); } @@ -769,21 +769,21 @@ virLockDaemonClientNew(virNetServerClientPtr client, goto error; =20 VIR_DEBUG("New client pid %llu uid %llu", - (unsigned long long)priv->clientPid, - (unsigned long long)clientuid); + (unsigned long long) priv->clientPid, + (unsigned long long) clientuid); =20 if (!privileged) { if (geteuid() !=3D clientuid) { virReportRestrictedError(_("Disallowing client %llu with uid %= llu"), - (unsigned long long)priv->clientPid, - (unsigned long long)clientuid); + (unsigned long long) priv->clientPid, + (unsigned long long) clientuid); goto error; } } else { if (clientuid !=3D 0) { virReportRestrictedError(_("Disallowing client %llu with uid %= llu"), - (unsigned long long)priv->clientPid, - (unsigned long long)clientuid); + (unsigned long long) priv->clientPid, + (unsigned long long) clientuid); goto error; } } @@ -942,7 +942,7 @@ virLockDaemonGetExecRestartMagic(void) { char *ret; =20 - ignore_value(virAsprintf(&ret, "%lld", (long long int)getpid())); + ignore_value(virAsprintf(&ret, "%lld", (long long int) getpid())); return ret; } =20 diff --git a/src/locking/lock_daemon_dispatch.c b/src/locking/lock_daemon_d= ispatch.c index 1b479db55dd4..6d117a2e1a04 100644 --- a/src/locking/lock_daemon_dispatch.c +++ b/src/locking/lock_daemon_dispatch.c @@ -285,7 +285,7 @@ virLockSpaceProtocolDispatchRegister(virNetServerPtr se= rver ATTRIBUTE_UNUSED, priv->ownerId =3D args->owner.id; priv->ownerPid =3D args->owner.pid; VIR_DEBUG("ownerName=3D%s ownerId=3D%d ownerPid=3D%lld", - priv->ownerName, priv->ownerId, (unsigned long long)priv->ow= nerPid); + priv->ownerName, priv->ownerId, (unsigned long long) priv->o= wnerPid); =20 rv =3D 0; =20 diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sa= nlock.c index 345cf0a77257..fa8b25e04208 100644 --- a/src/locking/lock_driver_sanlock.c +++ b/src/locking/lock_driver_sanlock.c @@ -1007,7 +1007,7 @@ static int virLockManagerSanlockAcquire(virLockManage= rPtr lock, SANLK_NAME_LEN - 1, SANLK_NAME_LEN)); =20 if (state && STRNEQ(state, "")) { - if ((rv =3D sanlock_state_to_args((char *)state, + if ((rv =3D sanlock_state_to_args((char *) state, &res_count, &res_args)) < 0) { char *err =3D NULL; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list