X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fgraph%2Fconnection.c;h=6c41f4c96bb6d7f9ef825724e6d93a0e6eb8b64f;hb=6d137876393a3a8af5e4ad756c4ae849be0399c9;hp=32146b132c8f86626958d6ebf03a4d442090ed40;hpb=9d408fcae74602e3591f66623ceb85f482d948ed;p=babeltrace.git diff --git a/lib/graph/connection.c b/lib/graph/connection.c index 32146b13..6c41f4c9 100644 --- a/lib/graph/connection.c +++ b/lib/graph/connection.c @@ -116,10 +116,10 @@ void bt_connection_parent_is_owner(struct bt_object *obj) bt_connection_try_remove_from_graph(connection); } -struct bt_connection *bt_connection_from_private_connection( +struct bt_connection *bt_connection_from_private( struct bt_private_connection *private_connection) { - return bt_get(bt_connection_from_private(private_connection)); + return bt_get(bt_connection_borrow_from_private(private_connection)); } BT_HIDDEN @@ -301,7 +301,7 @@ bt_private_connection_create_notification_iterator( goto end; } - connection = bt_connection_from_private(private_connection); + connection = bt_connection_borrow_from_private(private_connection); if (bt_graph_is_canceled(bt_connection_borrow_graph(connection))) { BT_LOGW("Cannot create notification iterator from connection: "