X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-input.h;h=b5b0aad12cea2d3f3c4722ce927f8f40e2c310ab;hb=7b53201cfb06ec02f4203e28458dfbcf53d87988;hp=d25e114479890fd8077e9a04ec12c40b60a2c486;hpb=3a2cb327fd24e53a9b163372b9079003dd422655;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-port-input.h b/include/babeltrace/graph/self-component-port-input.h index d25e1144..b5b0aad1 100644 --- a/include/babeltrace/graph/self-component-port-input.h +++ b/include/babeltrace/graph/self-component-port-input.h @@ -43,10 +43,10 @@ bt_self_component_port_input_as_self_component_port( } static inline -struct bt_port_input *bt_self_component_port_input_as_port_input( - struct bt_self_component_port_input *self_component_port) +const struct bt_port_input *bt_self_component_port_input_as_port_input( + const struct bt_self_component_port_input *self_component_port) { - return (void *) self_component_port; + return (const void *) self_component_port; } #ifdef __cplusplus