lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / self-component-source.h
index 95ccdb7a9ad45c787cdfaf7c015ffd7a238a2bc6..c7e644d0098f927596cf166539e40c22af4a15a2 100644 (file)
@@ -45,11 +45,11 @@ struct bt_self_component *bt_self_component_source_as_self_component(
 }
 
 static inline
-struct bt_component_source *
+const struct bt_component_source *
 bt_self_component_source_as_component_source(
                struct bt_self_component_source *self_comp_source)
 {
-       return (void *) self_comp_source;
+       return (const void *) self_comp_source;
 }
 
 extern struct bt_self_component_port_output *
This page took 0.026584 seconds and 4 git commands to generate.