lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / self-component-sink.h
index bdb76c8a44556ad92a27720fa1dd87c6f84f730f..531379ff90808c20c1be526ccc0edb7a331c8a77 100644 (file)
@@ -45,11 +45,11 @@ struct bt_self_component *bt_self_component_sink_as_self_component(
 }
 
 static inline
-struct bt_component_sink *
+const struct bt_component_sink *
 bt_self_component_sink_as_component_sink(
                struct bt_self_component_sink *self_comp_sink)
 {
-       return (void *) self_comp_sink;
+       return (const void *) self_comp_sink;
 }
 
 extern struct bt_self_component_port_input *
This page took 0.023823 seconds and 4 git commands to generate.