lib: remove unused includes
[babeltrace.git] / src / lib / trace-ir / field.c
index 41ea5f642cb9ef11ebca33fd7acd707b62357ac1..8110e58acc80749adfb8352acec7768fd87860a2 100644 (file)
@@ -13,7 +13,6 @@
 #include "lib/object.h"
 #include "compat/compiler.h"
 #include "compat/fcntl.h"
-#include "common/align.h"
 #include "common/assert.h"
 #include <inttypes.h>
 #include <stdbool.h>
@@ -21,6 +20,7 @@
 #include "field.h"
 #include "field-class.h"
 #include "lib/func-status.h"
+#include "utils.h"
 
 #define BT_ASSERT_PRE_DEV_FIELD_HOT(_field)                            \
        BT_ASSERT_PRE_DEV_HOT("field",                                  \
@@ -389,7 +389,7 @@ struct bt_field *create_string_field(struct bt_field_class *fc)
        }
 
        g_array_set_size(string_field->buf, 1);
-       g_array_index(string_field->buf, char, 0) = '\0';
+       bt_g_array_index(string_field->buf, char, 0) = '\0';
        BT_LIB_LOGD("Created string field object: %!+f", string_field);
 
 end:
@@ -875,7 +875,7 @@ void clear_string_field(struct bt_field *field)
 
        BT_ASSERT_DBG(field);
        string_field->length = 0;
-       g_array_index(string_field->buf, char, 0) = '\0';
+       bt_g_array_index(string_field->buf, char, 0) = '\0';
        bt_field_set_single(field, true);
 }
 
This page took 0.023922 seconds and 4 git commands to generate.