From nobody Wed May 14 13:03:11 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 1524487566065607.5232178046704; Mon, 23 Apr 2018 05:46:06 -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 906D4300443A; Mon, 23 Apr 2018 12:46:04 +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 3B4EF781C1; Mon, 23 Apr 2018 12:46:04 +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 5C4FA181A72F; Mon, 23 Apr 2018 12:46:03 +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 w3NCjBB3011903 for ; Mon, 23 Apr 2018 08:45:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id 66F3D202323A; Mon, 23 Apr 2018 12:45:11 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2903D2023239 for ; Mon, 23 Apr 2018 12:45:11 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id 3842912007C for ; Mon, 23 Apr 2018 14:45:08 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 23 Apr 2018 14:44:45 +0200 Message-Id: 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 17/29] storage: 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.49]); Mon, 23 Apr 2018 12:46:05 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- src/storage/storage_backend_disk.c | 4 ++-- src/storage/storage_backend_fs.c | 2 +- src/storage/storage_backend_gluster.c | 10 +++++----- src/storage/storage_backend_iscsi.c | 2 +- src/storage/storage_backend_mpath.c | 2 +- src/storage/storage_backend_rbd.c | 8 ++++---- src/storage/storage_util.c | 8 ++++---- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/storage/storage_backend_disk.c b/src/storage/storage_backe= nd_disk.c index 7b4549c34d65..54a6e10e4a19 100644 --- a/src/storage/storage_backend_disk.c +++ b/src/storage/storage_backend_disk.c @@ -553,7 +553,7 @@ static int virStorageVolNumOfPartTypes(virStorageVolDefPtr def, const void *opaque) { - struct virStorageVolNumData *data =3D (struct virStorageVolNumData *)o= paque; + struct virStorageVolNumData *data =3D (struct virStorageVolNumData *) = opaque; =20 if (def->source.partType =3D=3D VIR_STORAGE_VOL_DISK_TYPE_PRIMARY || def->source.partType =3D=3D VIR_STORAGE_VOL_DISK_TYPE_EXTENDED) @@ -670,7 +670,7 @@ virStorageBackendDiskPartBoundaries(virStoragePoolObjPt= r pool, unsigned long long alignedAllocation =3D allocation; virStoragePoolDefPtr def =3D virStoragePoolObjGetDef(pool); virStoragePoolSourceDevicePtr dev =3D &def->source.devices[0]; - unsigned long long cylinderSize =3D (unsigned long long)dev->geometry.= heads * + unsigned long long cylinderSize =3D (unsigned long long) dev->geometry= .heads * dev->geometry.sectors * SECTOR_SIZE; =20 VIR_DEBUG("find free area: allocation %llu, cyl size %llu", allocation, diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend= _fs.c index 9b0fcf92c5cd..34be92ffebb6 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -735,7 +735,7 @@ virStorageFileBackendFileInit(virStorageSourcePtr src) VIR_DEBUG("initializing FS storage file %p (%s:%s)[%u:%u]", src, virStorageTypeToString(virStorageSourceGetActualType(src)), src->path, - (unsigned int)src->drv->uid, (unsigned int)src->drv->gid); + (unsigned int) src->drv->uid, (unsigned int) src->drv->gid); =20 if (VIR_ALLOC(priv) < 0) return -1; diff --git a/src/storage/storage_backend_gluster.c b/src/storage/storage_ba= ckend_gluster.c index c6cc531e2ff6..030edba078fb 100644 --- a/src/storage/storage_backend_gluster.c +++ b/src/storage/storage_backend_gluster.c @@ -404,10 +404,10 @@ virStorageBackendGlusterRefreshPool(virStoragePoolObj= Ptr pool) goto cleanup; } =20 - def->capacity =3D ((unsigned long long)sb.f_frsize * - (unsigned long long)sb.f_blocks); - def->available =3D ((unsigned long long)sb.f_bfree * - (unsigned long long)sb.f_frsize); + def->capacity =3D ((unsigned long long) sb.f_frsize * + (unsigned long long) sb.f_blocks); + def->available =3D ((unsigned long long) sb.f_bfree * + (unsigned long long) sb.f_frsize); def->allocation =3D def->capacity - def->available; =20 ret =3D 0; @@ -642,7 +642,7 @@ virStorageFileBackendGlusterInit(virStorageSourcePtr sr= c) VIR_DEBUG("initializing gluster storage file %p " "(priv=3D'%p' volume=3D'%s' path=3D'%s') as [%u:%u]", src, priv, src->volume, src->path, - (unsigned int)src->drv->uid, (unsigned int)src->drv->gid); + (unsigned int) src->drv->uid, (unsigned int) src->drv->gid); =20 if (!(priv->vol =3D glfs_new(src->volume))) { virReportOOMError(); diff --git a/src/storage/storage_backend_iscsi.c b/src/storage/storage_back= end_iscsi.c index 7871d1915b11..f75c73ef0e6d 100644 --- a/src/storage/storage_backend_iscsi.c +++ b/src/storage/storage_backend_iscsi.c @@ -311,7 +311,7 @@ virStorageBackendISCSISetAuth(const char *portal, virISCSINodeUpdate(portal, source->devices[0].path, "node.session.auth.password", - (const char *)secret_value) < 0) + (const char *) secret_value) < 0) goto cleanup; =20 ret =3D 0; diff --git a/src/storage/storage_backend_mpath.c b/src/storage/storage_back= end_mpath.c index 5dcc40f601f3..27337cdf19b0 100644 --- a/src/storage/storage_backend_mpath.c +++ b/src/storage/storage_backend_mpath.c @@ -195,7 +195,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool, * any way to avoid this series of casts. */ VIR_WARNINGS_NO_CAST_ALIGN next =3D names->next; - names =3D (struct dm_names *)(((char *)names) + next); + names =3D (struct dm_names *) (((char *) names) + next); VIR_WARNINGS_RESET =20 } while (next); diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backen= d_rbd.c index 642cacb67362..34a12a19a883 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -303,7 +303,7 @@ virStorageBackendRBDRefreshVolInfoCb(uint64_t offset AT= TRIBUTE_UNUSED, int exists, void *arg) { - size_t *used_size =3D (size_t *)(arg); + size_t *used_size =3D (size_t *) (arg); if (exists) (*used_size) +=3D len; =20 @@ -847,10 +847,10 @@ virStorageBackendRBDSnapshotFindNoDiff(rbd_image_t im= age, */ #if LIBRBD_VERSION_CODE > 265 r =3D rbd_diff_iterate2(image, snaps[i].name, 0, info.size, 0, 1, - virStorageBackendRBDIterateCb, (void *)&diff= ); + virStorageBackendRBDIterateCb, (void *) &dif= f); #else r =3D rbd_diff_iterate(image, snaps[i].name, 0, info.size, - virStorageBackendRBDIterateCb, (void *)&diff); + virStorageBackendRBDIterateCb, (void *) &diff= ); #endif =20 if (r < 0) { @@ -988,7 +988,7 @@ virStorageBackendRBDCloneImage(rados_ioctx_t io, VIR_DEBUG("No RBD snapshot with zero delta could be found for imag= e %s", origvol); =20 - virBufferAsprintf(&snapname, "libvirt-%d", (int)virRandomInt(65534= )); + virBufferAsprintf(&snapname, "libvirt-%d", (int) virRandomInt(6553= 4)); =20 if (virBufferCheckError(&snapname) < 0) goto cleanup; diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index 897dfdaaee4d..3b675775e249 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -3771,10 +3771,10 @@ virStorageBackendRefreshLocal(virStoragePoolObjPtr = pool) goto cleanup; } =20 - def->capacity =3D ((unsigned long long)sb.f_frsize * - (unsigned long long)sb.f_blocks); - def->available =3D ((unsigned long long)sb.f_bfree * - (unsigned long long)sb.f_frsize); + def->capacity =3D ((unsigned long long) sb.f_frsize * + (unsigned long long) sb.f_blocks); + def->available =3D ((unsigned long long) sb.f_bfree * + (unsigned long long) sb.f_frsize); def->allocation =3D def->capacity - def->available; =20 def->target.perms.mode =3D target->perms->mode; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list