From nobody Wed May 14 13:58:07 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 1524487589294721.6901249782054; Mon, 23 Apr 2018 05:46:29 -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 D2B823133E6C; Mon, 23 Apr 2018 12:46:27 +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 76F676FEDB; Mon, 23 Apr 2018 12:46:27 +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 E9E555BBEE; Mon, 23 Apr 2018 12:46:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3NCjC70011966 for ; Mon, 23 Apr 2018 08:45:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 983FF1102E2A; Mon, 23 Apr 2018 12:45:12 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3BFBC1208F64 for ; Mon, 23 Apr 2018 12:45:12 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id AA59D120093 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:54 +0200 Message-Id: <36b64e4da941560eecd310315c50d7db651846fc.1524487472.git.mkletzan@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 26/29] tests: 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.46]); Mon, 23 Apr 2018 12:46:28 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander --- tests/commandtest.c | 2 +- tests/esxutilstest.c | 2 +- tests/libxlxml2domconfigtest.c | 2 +- tests/nwfilterebiptablestest.c | 2 +- tests/qemumonitortestutils.c | 2 +- tests/qemuxml2argvmock.c | 2 +- tests/securityselinuxhelper.c | 2 +- tests/testutils.c | 14 +++++++------- tests/viralloctest.c | 4 ++-- tests/vircgroupmock.c | 18 +++++++++--------- tests/virdbusmock.c | 2 +- tests/virhashtest.c | 2 +- tests/virhostdevtest.c | 2 +- tests/virnetdaemontest.c | 2 +- tests/virnetmessagetest.c | 12 ++++++------ tests/virnetsockettest.c | 4 ++-- tests/virnettlscontexttest.c | 2 +- tests/virnettlshelpers.c | 4 ++-- tests/virnettlssessiontest.c | 2 +- tests/virpcimock.c | 2 +- tests/virrandommock.c | 2 +- tests/virrotatingfiletest.c | 6 +++--- tests/virstringtest.c | 4 ++-- tests/virtypedparamtest.c | 2 +- tests/xml2vmxtest.c | 2 +- 25 files changed, 50 insertions(+), 50 deletions(-) diff --git a/tests/commandtest.c b/tests/commandtest.c index ad81c2a71219..8e7925bd95b9 100644 --- a/tests/commandtest.c +++ b/tests/commandtest.c @@ -1258,7 +1258,7 @@ mymain(void) test->running =3D true; virMutexUnlock(&test->lock); =20 - environ =3D (char **)newenv; + environ =3D (char **) newenv; =20 # define DO_TEST(NAME) \ if (virTestRun("Command Exec " #NAME " test", \ diff --git a/tests/esxutilstest.c b/tests/esxutilstest.c index 7941f89b9a38..e051ed712714 100644 --- a/tests/esxutilstest.c +++ b/tests/esxutilstest.c @@ -130,7 +130,7 @@ testConvertDateTimeToCalendarTime(const void *data ATTR= IBUTE_UNUSED) long long calendarTime; =20 for (i =3D 0; i < ARRAY_CARDINALITY(times); ++i) { - dateTime.value =3D (char *)times[i].dateTime; + dateTime.value =3D (char *) times[i].dateTime; =20 if (esxVI_DateTime_ConvertToCalendarTime(&dateTime, &calendarTime) < 0) { diff --git a/tests/libxlxml2domconfigtest.c b/tests/libxlxml2domconfigtest.c index d9287b59a811..b8d4121fa857 100644 --- a/tests/libxlxml2domconfigtest.c +++ b/tests/libxlxml2domconfigtest.c @@ -73,7 +73,7 @@ testCompareXMLToDomConfig(const char *xmlfile, =20 cfg->caps =3D caps; =20 - if (!(log =3D (xentoollog_logger *)xtl_createlogger_stdiostream(stderr= , XTL_DEBUG, 0))) + if (!(log =3D (xentoollog_logger *) xtl_createlogger_stdiostream(stder= r, XTL_DEBUG, 0))) goto cleanup; =20 /* for testing nested HVM */ diff --git a/tests/nwfilterebiptablestest.c b/tests/nwfilterebiptablestest.c index 607342330458..a17744f060ac 100644 --- a/tests/nwfilterebiptablestest.c +++ b/tests/nwfilterebiptablestest.c @@ -414,7 +414,7 @@ testNWFilterEBIPTablesApplyDHCPOnlyRules(const void *op= aque ATTRIBUTE_UNUSED) .valType =3D NWFILTER_VALUE_TYPE_ARRAY, .u =3D { .array =3D { - .values =3D (char **)servers, + .values =3D (char **) servers, .nValues =3D 3, } } diff --git a/tests/qemumonitortestutils.c b/tests/qemumonitortestutils.c index 62f68ee69992..4b6682914634 100644 --- a/tests/qemumonitortestutils.c +++ b/tests/qemumonitortestutils.c @@ -1153,7 +1153,7 @@ qemuMonitorCommonTestNew(virDomainXMLOptionPtr xmlopt, =20 memset(src, 0, sizeof(*src)); src->type =3D VIR_DOMAIN_CHR_TYPE_UNIX; - src->data.nix.path =3D (char *)path; + src->data.nix.path =3D (char *) path; src->data.nix.listen =3D false; path =3D NULL; =20 diff --git a/tests/qemuxml2argvmock.c b/tests/qemuxml2argvmock.c index adab5c91117f..371483d5e1d1 100644 --- a/tests/qemuxml2argvmock.c +++ b/tests/qemuxml2argvmock.c @@ -79,7 +79,7 @@ char * virTPMCreateCancelPath(const char *devpath) { char *path; - (void)devpath; + (void) devpath; =20 ignore_value(VIR_STRDUP(path, "/sys/class/misc/tpm0/device/cancel")); =20 diff --git a/tests/securityselinuxhelper.c b/tests/securityselinuxhelper.c index 22b6709554b4..e1e29648dc7e 100644 --- a/tests/securityselinuxhelper.c +++ b/tests/securityselinuxhelper.c @@ -308,7 +308,7 @@ selabel_open(unsigned int backend, /* struct selabel_handle is opaque; fake it */ if (VIR_ALLOC(fake_handle) < 0) return NULL; - return (struct selabel_handle *)fake_handle; + return (struct selabel_handle *) fake_handle; } =20 void selabel_close(struct selabel_handle *handle) diff --git a/tests/testutils.c b/tests/testutils.c index 4b13d112788a..641ef6f5418e 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -132,8 +132,8 @@ virTestShowTrace(void) strstr(info.dli_fname, ".so")) { if (virAsprintf(&cmd, ADDR2LINE " -f -e %s %p", info.dli_fname, - ((void*)((unsigned long long)testAllocStack[j] - - (unsigned long long)info.dli_fbase)= )) < 0) + ((void*)((unsigned long long) testAllocStack[j] + - (unsigned long long) info.dli_fbase= ))) < 0) continue; } else { if (virAsprintf(&cmd, ADDR2LINE " -f -e %s %p", @@ -753,18 +753,18 @@ int virTestDifferenceBin(FILE *stream, end =3D length - 1; =20 /* Show the trimmed differences */ - fprintf(stream, "\nExpect [ Region %d-%d", (int)start, (int)end); + fprintf(stream, "\nExpect [ Region %d-%d", (int) start, (int) end); for (i =3D start; i < end; i++) { if ((i % 4) =3D=3D 0) fprintf(stream, "\n "); - fprintf(stream, "0x%02x, ", ((int)expect[i])&0xff); + fprintf(stream, "0x%02x, ", ((int) expect[i])&0xff); } fprintf(stream, "]\n"); - fprintf(stream, "Actual [ Region %d-%d", (int)start, (int)end); + fprintf(stream, "Actual [ Region %d-%d", (int) start, (int) end); for (i =3D start; i < end; i++) { if ((i % 4) =3D=3D 0) fprintf(stream, "\n "); - fprintf(stream, "0x%02x, ", ((int)actual[i])&0xff); + fprintf(stream, "0x%02x, ", ((int) actual[i])&0xff); } fprintf(stream, "]\n"); =20 @@ -1122,7 +1122,7 @@ int virTestMain(int argc, virResetLastError(); if (!virTestGetVerbose() && ret !=3D EXIT_AM_SKIP) { if (testCounter =3D=3D 0 || testCounter % 40) - fprintf(stderr, "%*s", 40 - (int)(testCounter % 40), ""); + fprintf(stderr, "%*s", 40 - (int) (testCounter % 40), ""); fprintf(stderr, " %-3zu %s\n", testCounter, ret =3D=3D 0 ? "OK" : = "FAIL"); } virLogReset(); diff --git a/tests/viralloctest.c b/tests/viralloctest.c index 27cbdcbbe46f..ba184997762d 100644 --- a/tests/viralloctest.c +++ b/tests/viralloctest.c @@ -331,7 +331,7 @@ testInsertArray(const void *opaque ATTRIBUTE_UNUSED) testDummyStruct **t; size_t nt =3D 10, i; int ret =3D -1; - testDummyStruct *n =3D (void *)0xff; + testDummyStruct *n =3D (void *) 0xff; =20 if (VIR_ALLOC_N(t, nt) < 0) return -1; @@ -361,7 +361,7 @@ testInsertArray(const void *opaque ATTRIBUTE_UNUSED) } =20 for (i =3D 0; i < nt; i++) { - void *expect =3D i =3D=3D 3 ? (void *)0xff : (void*)0x50; + void *expect =3D i =3D=3D 3 ? (void *) 0xff : (void*)0x50; if (t[i] !=3D expect) { fprintf(stderr, "Expecting %p at offset %zu not %p\n", expect, i, t[i]); diff --git a/tests/vircgroupmock.c b/tests/vircgroupmock.c index 56337c2f3e09..96659ecd6a55 100644 --- a/tests/vircgroupmock.c +++ b/tests/vircgroupmock.c @@ -467,13 +467,13 @@ FILE *fopen(const char *path, const char *mode) if (STREQ(path, "/proc/mounts")) { if (STREQ(mode, "r")) { if (allinone) - return fmemopen((void *)procmountsallinone, + return fmemopen((void *) procmountsallinone, strlen(procmountsallinone), mode); else if (logind) - return fmemopen((void *)procmountslogind, + return fmemopen((void *) procmountslogind, strlen(procmountslogind), mode); else - return fmemopen((void *)procmounts, strlen(procmounts), mo= de); + return fmemopen((void *) procmounts, strlen(procmounts), m= ode); } else { errno =3D EACCES; return NULL; @@ -482,13 +482,13 @@ FILE *fopen(const char *path, const char *mode) if (STREQ(path, "/proc/cgroups")) { if (STREQ(mode, "r")) { if (allinone) - return fmemopen((void *)proccgroupsallinone, + return fmemopen((void *) proccgroupsallinone, strlen(proccgroupsallinone), mode); else if (logind) - return fmemopen((void *)proccgroupslogind, + return fmemopen((void *) proccgroupslogind, strlen(proccgroupslogind), mode); else - return fmemopen((void *)proccgroups, strlen(proccgroups), = mode); + return fmemopen((void *) proccgroups, strlen(proccgroups),= mode); } else { errno =3D EACCES; return NULL; @@ -497,13 +497,13 @@ FILE *fopen(const char *path, const char *mode) if (STREQ(path, "/proc/self/cgroup")) { if (STREQ(mode, "r")) { if (allinone) - return fmemopen((void *)procselfcgroupsallinone, + return fmemopen((void *) procselfcgroupsallinone, strlen(procselfcgroupsallinone), mode); else if (logind) - return fmemopen((void *)procselfcgroupslogind, + return fmemopen((void *) procselfcgroupslogind, strlen(procselfcgroupslogind), mode); else - return fmemopen((void *)procselfcgroups, strlen(procselfcg= roups), mode); + return fmemopen((void *) procselfcgroups, strlen(procselfc= groups), mode); } else { errno =3D EACCES; return NULL; diff --git a/tests/virdbusmock.c b/tests/virdbusmock.c index a62689e91d5b..8786262e52ca 100644 --- a/tests/virdbusmock.c +++ b/tests/virdbusmock.c @@ -31,7 +31,7 @@ VIR_MOCK_STUB_VOID_ARGS(dbus_connection_set_change_sigpip= e, =20 =20 VIR_MOCK_STUB_RET_ARGS(dbus_bus_get, - DBusConnection *, (DBusConnection *)0x1, + DBusConnection *, (DBusConnection *) 0x1, DBusBusType, type, DBusError *, error) =20 diff --git a/tests/virhashtest.c b/tests/virhashtest.c index e9c03c1afbbc..40c1d327fb98 100644 --- a/tests/virhashtest.c +++ b/tests/virhashtest.c @@ -38,7 +38,7 @@ testHashInit(int size) =20 if (virHashTableSize(hash) !=3D oldsize) { VIR_TEST_DEBUG("hash grown from %zd to %zd", - (size_t)oldsize, (size_t)virHashTableSize(hash)); + (size_t) oldsize, (size_t) virHashTableSize(hash)); } } =20 diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c index 5b03cb6aee5e..cc7fdf8be68f 100644 --- a/tests/virhostdevtest.c +++ b/tests/virhostdevtest.c @@ -53,7 +53,7 @@ VIR_LOG_INIT("tests.hostdevtest"); static const char *drv_name =3D "test_driver"; static const char *dom_name =3D "test_domain"; static const unsigned char *uuid =3D - (unsigned char *)("f92360b0-2541-8791-fb32-d1f838811541"); + (unsigned char *) ("f92360b0-2541-8791-fb32-d1f838811541"); static int nhostdevs =3D 3; static virDomainHostdevDefPtr hostdevs[] =3D {NULL, NULL, NULL}; static virPCIDevicePtr dev[] =3D {NULL, NULL, NULL}; diff --git a/tests/virnetdaemontest.c b/tests/virnetdaemontest.c index ef869b16e363..3cc388bceafa 100644 --- a/tests/virnetdaemontest.c +++ b/tests/virnetdaemontest.c @@ -328,7 +328,7 @@ static int testExecRestart(const void *opaque) data->nservers, data->serverNames, testNewServerPostExecRestar= t, - (void *)data))) + (void *) data))) goto cleanup; =20 for (i =3D 0; i < data->nservers; i++) { diff --git a/tests/virnetmessagetest.c b/tests/virnetmessagetest.c index be7d019c310a..8d63b268d031 100644 --- a/tests/virnetmessagetest.c +++ b/tests/virnetmessagetest.c @@ -123,13 +123,13 @@ static int testMessageHeaderDecode(const void *args A= TTRIBUTE_UNUSED) =20 if (msg->bufferOffset !=3D 0x4) { VIR_DEBUG("Expecting offset %zu got %zu", - (size_t)4, msg->bufferOffset); + (size_t) 4, msg->bufferOffset); goto cleanup; } =20 if (msg->bufferLength !=3D 0x1c) { VIR_DEBUG("Expecting length %zu got %zu", - (size_t)0x1c, msg->bufferLength); + (size_t) 0x1c, msg->bufferLength); goto cleanup; } =20 @@ -346,13 +346,13 @@ static int testMessagePayloadDecode(const void *args = ATTRIBUTE_UNUSED) =20 if (msg->bufferOffset !=3D 0x4) { VIR_DEBUG("Expecting offset %zu got %zu", - (size_t)4, msg->bufferOffset); + (size_t) 4, msg->bufferOffset); goto cleanup; } =20 if (msg->bufferLength !=3D 0x74) { VIR_DEBUG("Expecting length %zu got %zu", - (size_t)0x74, msg->bufferLength); + (size_t) 0x74, msg->bufferLength); goto cleanup; } =20 @@ -365,13 +365,13 @@ static int testMessagePayloadDecode(const void *args = ATTRIBUTE_UNUSED) =20 if (msg->bufferOffset !=3D 28) { VIR_DEBUG("Expect message offset %zu got %zu", - msg->bufferOffset, (size_t)28); + msg->bufferOffset, (size_t) 28); goto cleanup; } =20 if (msg->bufferLength !=3D 0x74) { VIR_DEBUG("Expecting length %zu got %zu", - (size_t)0x1c, msg->bufferLength); + (size_t) 0x1c, msg->bufferLength); goto cleanup; } =20 diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c index 9f9a24348449..638e05127834 100644 --- a/tests/virnetsockettest.c +++ b/tests/virnetsockettest.c @@ -81,7 +81,7 @@ checkProtocols(bool *hasIPv4, bool *hasIPv6, in6.sin6_port =3D htons(BASE_PORT + i); in6.sin6_addr =3D in6addr_loopback; =20 - if (bind(s4, (struct sockaddr *)&in4, sizeof(in4)) < 0) { + if (bind(s4, (struct sockaddr *) &in4, sizeof(in4)) < 0) { if (errno =3D=3D EADDRINUSE) { VIR_FORCE_CLOSE(s4); VIR_FORCE_CLOSE(s6); @@ -91,7 +91,7 @@ checkProtocols(bool *hasIPv4, bool *hasIPv6, } =20 if (*hasIPv6) { - if (bind(s6, (struct sockaddr *)&in6, sizeof(in6)) < 0) { + if (bind(s6, (struct sockaddr *) &in6, sizeof(in6)) < 0) { if (errno =3D=3D EADDRINUSE) { VIR_FORCE_CLOSE(s4); VIR_FORCE_CLOSE(s6); diff --git a/tests/virnettlscontexttest.c b/tests/virnettlscontexttest.c index 86647f3014b0..9205d05724a8 100644 --- a/tests/virnettlscontexttest.c +++ b/tests/virnettlscontexttest.c @@ -62,7 +62,7 @@ struct testTLSContextData { */ static int testTLSContextInit(const void *opaque) { - struct testTLSContextData *data =3D (struct testTLSContextData *)opaqu= e; + struct testTLSContextData *data =3D (struct testTLSContextData *) opaq= ue; virNetTLSContextPtr ctxt =3D NULL; int ret =3D -1; =20 diff --git a/tests/virnettlshelpers.c b/tests/virnettlshelpers.c index 5c94f899774a..3f5cc7ae416a 100644 --- a/tests/virnettlshelpers.c +++ b/tests/virnettlshelpers.c @@ -74,7 +74,7 @@ gnutls_x509_privkey_t privkey; static gnutls_x509_privkey_t testTLSLoadKey(void) { gnutls_x509_privkey_t key; - const gnutls_datum_t data =3D { (unsigned char *)PRIVATE_KEY, strlen(P= RIVATE_KEY) }; + const gnutls_datum_t data =3D { (unsigned char *) PRIVATE_KEY, strlen(= PRIVATE_KEY) }; int err; =20 if ((err =3D gnutls_x509_privkey_init(&key)) < 0) { @@ -137,7 +137,7 @@ static void testTLSDerEncode(ASN1_TYPE src, =20 asn1_der_coding(src, src_name, data, &size, NULL); =20 - res->data =3D (unsigned char *)data; + res->data =3D (unsigned char *) data; res->size =3D size; } =20 diff --git a/tests/virnettlssessiontest.c b/tests/virnettlssessiontest.c index 7e856071817d..f2501661f41e 100644 --- a/tests/virnettlssessiontest.c +++ b/tests/virnettlssessiontest.c @@ -80,7 +80,7 @@ static ssize_t testRead(char *buf, size_t len, void *opaq= ue) */ static int testTLSSessionInit(const void *opaque) { - struct testTLSSessionData *data =3D (struct testTLSSessionData *)opaqu= e; + struct testTLSSessionData *data =3D (struct testTLSSessionData *) opaq= ue; virNetTLSContextPtr clientCtxt =3D NULL; virNetTLSContextPtr serverCtxt =3D NULL; virNetTLSSessionPtr clientSess =3D NULL; diff --git a/tests/virpcimock.c b/tests/virpcimock.c index 176c64d65435..773cc16840ca 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -844,7 +844,7 @@ init_env(void) =20 # define MAKE_PCI_DEVICE(Id, Vendor, Device, ...) \ do { \ - struct pciDevice dev =3D {.id =3D (char *)Id, .vendor =3D Vendor, \ + struct pciDevice dev =3D {.id =3D (char *) Id, .vendor =3D Vendor,= \ .device =3D Device, __VA_ARGS__}; \ pci_device_new_from_stub(&dev); \ } while (0) diff --git a/tests/virrandommock.c b/tests/virrandommock.c index fd1a61f67321..52211644e4c6 100644 --- a/tests/virrandommock.c +++ b/tests/virrandommock.c @@ -46,7 +46,7 @@ int virRandomGenerateWWN(char **wwn, const char *virt_type ATTRIBUTE_UNUSED) { return virAsprintf(wwn, "5100000%09llx", - (unsigned long long)virRandomBits(36)); + (unsigned long long) virRandomBits(36)); } =20 =20 diff --git a/tests/virrotatingfiletest.c b/tests/virrotatingfiletest.c index 89ceda8e49bd..f1d4699e5cac 100644 --- a/tests/virrotatingfiletest.c +++ b/tests/virrotatingfiletest.c @@ -58,8 +58,8 @@ static int testRotatingFileWriterAssertOneFileSize(const = char *filename, return -1; } else if (sb.st_size !=3D size) { fprintf(stderr, "File %s should be %llu bytes not %llu\n", - filename, (unsigned long long)size, - (unsigned long long)sb.st_size); + filename, (unsigned long long) size, + (unsigned long long) sb.st_size); return -1; } else { return 0; @@ -127,7 +127,7 @@ static int testRotatingFileInitOne(const char *filename, VIR_DEBUG("Deleting %s", filename); unlink(filename); } else { - VIR_DEBUG("Creating %s size %zu", filename, (size_t)size); + VIR_DEBUG("Creating %s size %zu", filename, (size_t) size); char buf[1024]; int fd =3D open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0700); if (fd < 0) { diff --git a/tests/virstringtest.c b/tests/virstringtest.c index 1230aba5b7a3..18558d3356b2 100644 --- a/tests/virstringtest.c +++ b/tests/virstringtest.c @@ -179,7 +179,7 @@ static int testAdd(const void *args) size_t i; =20 for (i =3D 0; data->tokens[i]; i++) { - char **tmp =3D virStringListAdd((const char **)list, data->tokens[= i]); + char **tmp =3D virStringListAdd((const char **) list, data->tokens= [i]); if (!tmp) goto cleanup; virStringListFree(list); @@ -191,7 +191,7 @@ static int testAdd(const void *args) VIR_ALLOC(list) < 0) goto cleanup; =20 - if (!(got =3D virStringListJoin((const char **)list, data->delim))) { + if (!(got =3D virStringListJoin((const char **) list, data->delim))) { VIR_DEBUG("Got no result"); goto cleanup; } diff --git a/tests/virtypedparamtest.c b/tests/virtypedparamtest.c index fbacfa85ad44..cd79bbe63736 100644 --- a/tests/virtypedparamtest.c +++ b/tests/virtypedparamtest.c @@ -48,7 +48,7 @@ static int testTypedParamsValidate(const void *opaque) { int rv; - TypedParameterTest *test =3D (TypedParameterTest *)opaque; + TypedParameterTest *test =3D (TypedParameterTest *) opaque; virErrorPtr errptr; =20 rv =3D virTypedParamsValidate( diff --git a/tests/xml2vmxtest.c b/tests/xml2vmxtest.c index f6bcd7b01282..90110b2d24bd 100644 --- a/tests/xml2vmxtest.c +++ b/tests/xml2vmxtest.c @@ -167,7 +167,7 @@ testFormatVMXFileName(const char *src, void *opaque ATT= RIBUTE_UNUSED) directoryAndFileName =3D strtok_r(NULL, "", &saveptr); =20 if (directoryAndFileName =3D=3D NULL) { - directoryAndFileName =3D (char *)""; + directoryAndFileName =3D (char *) ""; } else { directoryAndFileName +=3D strspn(directoryAndFileName, " "); } --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list