X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fport.c;fp=lib%2Fgraph%2Fport.c;h=25b427d2d0048a9ff7dc7b08ece32dfaf369c325;hb=f6ccaed94e575af57fe6bf38154771bee4871a2a;hp=43f3134ce938fb21fde27b5c67f523a9782b02be;hpb=464ebc311d460b29f681703aea0aa00eef9e6475;p=babeltrace.git diff --git a/lib/graph/port.c b/lib/graph/port.c index 43f3134c..25b427d2 100644 --- a/lib/graph/port.c +++ b/lib/graph/port.c @@ -35,6 +35,7 @@ #include #include #include +#include static void bt_port_destroy(struct bt_object *obj) @@ -63,9 +64,9 @@ struct bt_port *bt_port_create(struct bt_component *parent_component, { struct bt_port *port = NULL; - assert(name); - assert(parent_component); - assert(type == BT_PORT_TYPE_INPUT || type == BT_PORT_TYPE_OUTPUT); + BT_ASSERT(name); + BT_ASSERT(parent_component); + BT_ASSERT(type == BT_PORT_TYPE_INPUT || type == BT_PORT_TYPE_OUTPUT); if (strlen(name) == 0) { BT_LOGW_STR("Invalid parameter: name is an empty string."); @@ -193,7 +194,7 @@ enum bt_port_status bt_private_port_remove_from_component( /* bt_component_remove_port() logs details */ comp_status = bt_component_remove_port(comp, port); - assert(comp_status != BT_COMPONENT_STATUS_INVALID); + BT_ASSERT(comp_status != BT_COMPONENT_STATUS_INVALID); if (comp_status < 0) { status = BT_PORT_STATUS_ERROR; goto end;