Make 'lttng/bitmap.h' a private header
[lttng-ust.git] / libcounter / counter.c
index 640705d32d4bdc7d2f8e50d951c781bf17d633cf..c98589db8329c7b16145a73e11db9dbdd57def7a 100644 (file)
@@ -9,15 +9,16 @@
 #include <errno.h>
 #include "counter.h"
 #include "counter-internal.h"
-#include <lttng/bitmap.h>
 #include <urcu/system.h>
 #include <urcu/compiler.h>
 #include <stdbool.h>
-#include <helper.h>
+#include <ust-helper.h>
 #include <lttng/align.h>
 #include "smp.h"
 #include "shm.h"
 
+#include "ust-bitmap.h"
+
 static size_t lttng_counter_get_dimension_nr_elements(struct lib_counter_dimension *dimension)
 {
        return dimension->max_nr_elem;
@@ -188,7 +189,7 @@ int validate_args(const struct lib_counter_config *config,
                return -1;
        if (!(config->alloc & COUNTER_ALLOC_PER_CPU) && counter_cpu_fds)
                return -1;
-       if (!(config->alloc & COUNTER_ALLOC_PER_CPU) && counter_cpu_fds >= 0)
+       if (!(config->alloc & COUNTER_ALLOC_PER_CPU) && nr_counter_cpu_fds >= 0)
                return -1;
        if (counter_cpu_fds && nr_cpus != nr_counter_cpu_fds)
                return -1;
This page took 0.024736 seconds and 4 git commands to generate.