cleanup: Remove redefinition of CHAR_BIT
[lttng-ust.git] / liblttng-ust / lttng-context-pthread-id.c
index b25dc7aee5c4a803a35f71b247ababe451a2be87..bc235826f106cb7049880d05ae4ec03da9fa0718 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <limits.h>
 #include <stddef.h>
 #include <pthread.h>
 #include <lttng/ust-events.h>
@@ -28,7 +29,7 @@ size_t pthread_id_get_size(struct lttng_ust_ctx_field *field, size_t offset)
 static
 void pthread_id_record(struct lttng_ust_ctx_field *field,
                 struct lttng_ust_lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_ust_channel_buffer *chan)
 {
        unsigned long pthread_id;
 
@@ -52,7 +53,7 @@ int lttng_add_pthread_id_to_ctx(struct lttng_ust_ctx **ctx)
 
        type = lttng_ust_create_type_integer(sizeof(unsigned long) * CHAR_BIT,
                        lttng_alignof(unsigned long) * CHAR_BIT,
-                       lttng_is_signed_type(unsigned long),
+                       lttng_ust_is_signed_type(unsigned long),
                        BYTE_ORDER, 10);
        if (!type)
                return -ENOMEM;
This page took 0.024133 seconds and 4 git commands to generate.