Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git] / src / lib / trace-ir / clock-class.c
index e982ad7f0fafc74e48ba733db4635508f15c1d4e..0b449e277ad2e4b8f5911373de10a55c822d60ff 100644 (file)
@@ -35,6 +35,7 @@
 #include <babeltrace2/types.h>
 #include "compat/string.h"
 #include <inttypes.h>
+#include <stdbool.h>
 #include "lib/object.h"
 #include "common/assert.h"
 #include "lib/func-status.h"
@@ -338,9 +339,9 @@ void bt_clock_class_set_user_attributes(
        BT_ASSERT_PRE(user_attributes->type == BT_VALUE_TYPE_MAP,
                "User attributes object is not a map value object.");
        BT_ASSERT_PRE_DEV_CLOCK_CLASS_HOT(clock_class);
-       bt_object_put_no_null_check(clock_class->user_attributes);
+       bt_object_put_ref_no_null_check(clock_class->user_attributes);
        clock_class->user_attributes = (void *) user_attributes;
-       bt_object_get_no_null_check(clock_class->user_attributes);
+       bt_object_get_ref_no_null_check(clock_class->user_attributes);
 }
 
 void bt_clock_class_get_ref(const struct bt_clock_class *clock_class)
This page took 0.024417 seconds and 4 git commands to generate.