git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-vsctl: Improve error message for "ovs-vsctl del-port <bridge>".
[sliver-openvswitch.git]
/
lib
/
util.h
diff --git
a/lib/util.h
b/lib/util.h
index
b944ec7
..
f5589e3
100644
(file)
--- a/
lib/util.h
+++ b/
lib/util.h
@@
-23,6
+23,7
@@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "compiler.h"
#include <string.h>
#include "compiler.h"
@@
-265,7
+266,7
@@
ctz(uint32_t n)
int log_2_floor(uint32_t);
int log_2_ceil(uint32_t);
int log_2_floor(uint32_t);
int log_2_ceil(uint32_t);
-int popcount(uint32_t);
+
unsigned
int popcount(uint32_t);
/* Returns the rightmost 1-bit in 'x' (e.g. 01011000 => 00001000), or 0 if 'x'
* is 0. */
/* Returns the rightmost 1-bit in 'x' (e.g. 01011000 => 00001000), or 0 if 'x'
* is 0. */