Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- src/internal.h | 4 ++-- src/libvirt-domain.c | 4 ++-- src/libvirt-host.c | 2 +- src/libvirt-lxc.c | 4 ++-- src/libvirt-stream.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/internal.h b/src/internal.h index 47ff0479d232..f81bc765d750 100644 --- a/src/internal.h +++ b/src/internal.h @@ -496,8 +496,8 @@ /* Round up to the next closest power of 2. It will return rounded number or 0 * for 0 or number more than 2^31 (for 32bit unsigned int). */ # define VIR_ROUND_UP_POWER_OF_TWO(value) \ - ((value) > 0 && (value) <= 1U << (sizeof(unsigned int) * 8 - 1) ? \ - 1U << (sizeof(unsigned int) * 8 - count_leading_zeros((value) - 1)) : 0) + ((value) > 0 && (value) <= 1U << (sizeof(unsigned int)* 8 - 1) ? \ + 1U << (sizeof(unsigned int)* 8 - count_leading_zeros((value) - 1)) : 0) /* Specific error values for use in forwarding programs such as diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 2d86e48979d3..2a29e217c8c9 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -1719,7 +1719,7 @@ virDomainGetUUIDString(virDomainPtr domain, char *buf) * * Get the hypervisor ID number for the domain * - * Returns the domain ID number or (unsigned int) -1 in case of error + * Returns the domain ID number or (unsigned int)-1 in case of error */ unsigned int virDomainGetID(virDomainPtr domain) @@ -1799,7 +1799,7 @@ virDomainGetMaxMemory(virDomainPtr domain) ret = conn->driver->domainGetMaxMemory(domain); if (ret == 0) goto error; - if ((unsigned long) ret != ret) { + if ((unsigned long)ret != ret) { virReportError(VIR_ERR_OVERFLOW, _("result too large: %llu"), ret); goto error; diff --git a/src/libvirt-host.c b/src/libvirt-host.c index 76087badd8e3..5534c96fa7c7 100644 --- a/src/libvirt-host.c +++ b/src/libvirt-host.c @@ -1348,7 +1348,7 @@ virNodeGetCPUMap(virConnectPtr conn, * int startcell = 0; * unsigned int cellcount = 2; * - * unsigned long long counts = malloc(sizeof(long long) * npages * cellcount); + * unsigned long long counts = malloc(sizeof(long long)* npages * cellcount); * * virNodeGetFreePages(conn, pages, npages, * startcell, cellcount, counts, 0); diff --git a/src/libvirt-lxc.c b/src/libvirt-lxc.c index c9f2146487d6..f5db8027f1a4 100644 --- a/src/libvirt-lxc.c +++ b/src/libvirt-lxc.c @@ -215,7 +215,7 @@ virDomainLxcEnterSecurityLabel(virSecurityModelPtr model, goto error; } - if (strlen((char *) ctx) >= VIR_SECURITY_LABEL_BUFLEN) { + if (strlen((char *)ctx) >= VIR_SECURITY_LABEL_BUFLEN) { virReportError(VIR_ERR_INTERNAL_ERROR, _("security label exceeds " "maximum length: %d"), @@ -224,7 +224,7 @@ virDomainLxcEnterSecurityLabel(virSecurityModelPtr model, goto error; } - strcpy(oldlabel->label, (char *) ctx); + strcpy(oldlabel->label, (char *)ctx); freecon(ctx); if ((oldlabel->enforcing = security_getenforce()) < 0) { diff --git a/src/libvirt-stream.c b/src/libvirt-stream.c index ef83696bcda7..3b829217a3d9 100644 --- a/src/libvirt-stream.c +++ b/src/libvirt-stream.c @@ -659,7 +659,7 @@ virStreamSendAll(virStreamPtr stream, * int myskip(virStreamPtr st, long long offset, void *opaque) { * int *fd = opaque; * - * return lseek(*fd, offset, SEEK_CUR) == (off_t) -1 ? -1 : 0; + * return lseek(*fd, offset, SEEK_CUR) == (off_t)-1 ? -1 : 0; * } * * int myindata(virStreamPtr st, int *inData, @@ -938,7 +938,7 @@ virStreamRecvAll(virStreamPtr stream, * int myskip(virStreamPtr st, long long offset, void *opaque) { * int *fd = opaque; * - * return lseek(*fd, offset, SEEK_CUR) == (off_t) -1 ? -1 : 0; + * return lseek(*fd, offset, SEEK_CUR) == (off_t)-1 ? -1 : 0; * } * * virStreamPtr st = virStreamNew(conn, 0); -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list