projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa5982e
)
host-utils: Prefer 'false' for bool type
author
Eric Blake
<eblake@redhat.com>
Tue, 31 May 2016 18:33:31 +0000
(12:33 -0600)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:24 +0000
(18:19 +0300)
Mixing '0' and 'bool' looks stupid.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/host-utils.h
patch
|
blob
|
history
diff --git
a/include/qemu/host-utils.h
b/include/qemu/host-utils.h
index 1cdae0d0ed4e3a2d537b922c3fc9691fc37e6a96..3de7d4ec55082deb800b58582952a510799375be 100644
(file)
--- a/
include/qemu/host-utils.h
+++ b/
include/qemu/host-utils.h
@@
-486,7
+486,7
@@
static inline uint64_t revbit64(uint64_t x)
static inline bool is_power_of_2(uint64_t value)
{
if (!value) {
- return
0
;
+ return
false
;
}
return !(value & (value - 1));