Standardize *get_*_count() functions
[babeltrace.git] / plugins / utils / muxer / muxer.c
index d78884d4fcf42b8665c550245829fdf1f89d2ea4..75b195971ac77049b0e0d5ca9d1f320d39dd3cbd 100644 (file)
@@ -802,8 +802,8 @@ int muxer_notif_iter_init_newly_connected_ports(struct muxer_comp *muxer_comp,
                struct muxer_notif_iter *muxer_notif_iter)
 {
        struct bt_component *comp;
-       uint64_t count;
-       uint64_t i;
+       int64_t count;
+       int64_t i;
        int ret = 0;
 
        /*
@@ -813,8 +813,8 @@ int muxer_notif_iter_init_newly_connected_ports(struct muxer_comp *muxer_comp,
         */
        comp = bt_component_from_private_component(muxer_comp->priv_comp);
        assert(comp);
-       ret = bt_component_filter_get_input_port_count(comp, &count);
-       if (ret) {
+       count = bt_component_filter_get_input_port_count(comp);
+       if (count < 0) {
                goto end;
        }
 
This page took 0.024734 seconds and 4 git commands to generate.