From cd20813f2d221faf229f522cba89b9b028438050 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 1 Apr 2019 16:01:08 -0400 Subject: [PATCH] Adjust bt_component_borrow_class to match declaration Rename it to bt_component_borrow_class_const and constify return type, to match declaration in graph/component-const.h. Signed-off-by: Simon Marchi --- lib/graph/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graph/component.c b/lib/graph/component.c index 53c9cd6de..6321762f0 100644 --- a/lib/graph/component.c +++ b/lib/graph/component.c @@ -331,7 +331,7 @@ const char *bt_component_get_name(const struct bt_component *component) return component->name->str; } -struct bt_component_class *bt_component_borrow_class( +const struct bt_component_class *bt_component_borrow_class_const( const struct bt_component *component) { BT_ASSERT_PRE_NON_NULL(component, "Component"); -- 2.34.1