Cleanup: flt.lttng-utils.debug-info: remove usage of `bt_bool` inside the component...
[babeltrace.git] / src / plugins / lttng-utils / debug-info / utils.c
index b066ea48509891255d3ed70995dbfe584514f9ef..0042e8aab7af7cbb9d118b1185b462ee4840bced 100644 (file)
@@ -6,6 +6,7 @@
  * Babeltrace - Debug info utilities
  */
 
+#include <stdbool.h>
 #include <string.h>
 
 #include <babeltrace2/babeltrace.h>
@@ -41,19 +42,18 @@ end:
 }
 
 BT_HIDDEN
-bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
+bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
                const char *debug_info_field_class_name)
 {
        const bt_field_class_structure_member *member;
        const bt_field_class *ip_fc, *vpid_fc;
-       bt_bool match = BT_FALSE;
+       bool match = false;
 
        /*
         * If the debug info field is already present in the event common
         * context. Do not try to add it.
         */
-       member =
-               bt_field_class_structure_borrow_member_by_name_const(
+       member = bt_field_class_structure_borrow_member_by_name_const(
                        in_field_class, debug_info_field_class_name);
        if (member) {
                goto end;
@@ -73,7 +73,6 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c
                member);
        if (bt_field_class_get_type(ip_fc) !=
                        BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER) {
-               match = BT_FALSE;
                goto end;
        }
 
@@ -85,7 +84,6 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c
 
        vpid_fc = bt_field_class_structure_member_borrow_field_class_const(
                member);
-
        if (bt_field_class_get_type(vpid_fc) !=
                        BT_FIELD_CLASS_TYPE_SIGNED_INTEGER) {
                goto end;
@@ -95,7 +93,7 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c
                goto end;
        }
 
-       match = BT_TRUE;
+       match = true;
 
 end:
        return match;
This page took 0.040466 seconds and 4 git commands to generate.