Re: [PATCH 29/30] Remove spaces after casts in rest of the files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 25, 2018 at 03:25:06PM +0200, Martin Kletzander wrote:
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)

This is not a cast.



/* Specific error values for use in forwarding programs such as

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);
 *

Neither is this.

 *   virNodeGetFreePages(conn, pages, npages,
 *                       startcell, cellcount, counts, 0);

Jano

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux