- ret = bt_graph_add_component(graph, sink_comp_class, "the-sink", NULL,
- &sink_component);
- ok(ret == 0 && sink_component,
+ graph_ret = bt_graph_add_component(graph, sink_comp_class, "the-sink",
+ NULL, &sink_component);
+ ok(graph_ret == BT_GRAPH_STATUS_OK && sink_component,