Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git] / src / ctf-writer / stream-class.c
index 55f3a09b851a8ab8e0855cd224feefc73892312b..b23d47713251d93e53192d97e03144d1711c33a7 100644 (file)
@@ -25,7 +25,6 @@
 #include "logging.h"
 
 #include <inttypes.h>
-#include <stdbool.h>
 #include <stdint.h>
 
 #include <babeltrace2-ctf-writer/event.h>
@@ -166,6 +165,7 @@ int bt_ctf_stream_class_common_add_event_class(
        const enum bt_ctf_validation_flag validation_flags =
                BT_CTF_VALIDATION_FLAG_EVENT;
        struct bt_ctf_clock_class *expected_clock_class = NULL;
+       struct bt_ctf_search_query query = { .value = event_class, .found = 0 };
 
        BT_ASSERT_DBG(copy_field_type_func);
 
@@ -238,7 +238,6 @@ int bt_ctf_stream_class_common_add_event_class(
        }
 
        /* Check for duplicate event classes */
-       struct bt_ctf_search_query query = { .value = event_class, .found = 0 };
        g_ptr_array_foreach(stream_class->event_classes, event_class_exists,
                &query);
        if (query.found) {
This page took 0.024364 seconds and 4 git commands to generate.