fls: use local namespace to do not clash with FreeBSD string.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 00:17:08 +0000 (19:17 -0500)
committerChristian Babeux <christian.babeux@efficios.com>
Tue, 27 Nov 2012 19:18:29 +0000 (14:18 -0500)
commit bfd265823dd6c3b272b92c6e39456e851bfd51ce upstream.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
libringbuffer/backend_internal.h

index 373e3147e383c143dc7273253d584f922a421a50..050c98ac530dfc34f267ff9f23cb9bf8db84bbfd 100644 (file)
@@ -448,7 +448,7 @@ do {                                                                \
 
 /* arch-agnostic implementation */
 
-static inline int fls(unsigned int x)
+static inline int lttng_ust_fls(unsigned int x)
 {
        int r = 32;
 
@@ -481,7 +481,7 @@ static inline int get_count_order(unsigned int count)
 {
        int order;
 
-       order = fls(count) - 1;
+       order = lttng_ust_fls(count) - 1;
        if (count & (count - 1))
                order++;
        return order;
This page took 0.025421 seconds and 4 git commands to generate.