Do not use `bool` type; use new `bt_bool` instead
[babeltrace.git] / plugins / utils / muxer / muxer.c
index b98a74e02bbe47716bc888d4f0c539b3dfb43d01..67ba0a99421b805e61ff149c90115df30c60b50d 100644 (file)
@@ -39,6 +39,7 @@
 #include <babeltrace/graph/private-port.h>
 #include <plugins-common.h>
 #include <glib.h>
+#include <stdbool.h>
 #include <assert.h>
 
 #define IGNORE_ABSOLUTE_PARAM_NAME     "ignore-absolute"
@@ -246,6 +247,7 @@ int configure_muxer_comp(struct muxer_comp *muxer_comp, struct bt_value *params)
        struct bt_value *real_params = NULL;
        struct bt_value *ignore_absolute = NULL;
        int ret = 0;
+       bt_bool bool_val;
 
        default_params = get_default_params();
        if (!default_params) {
@@ -263,10 +265,12 @@ int configure_muxer_comp(struct muxer_comp *muxer_comp, struct bt_value *params)
                goto error;
        }
 
-       if (bt_value_bool_get(ignore_absolute, &muxer_comp->ignore_absolute)) {
+       if (bt_value_bool_get(ignore_absolute, &bool_val)) {
                goto error;
        }
 
+       muxer_comp->ignore_absolute = (bool) bool_val;
+
        goto end;
 
 error:
This page took 0.023992 seconds and 4 git commands to generate.