X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-input.h;h=150499a2e14a3959efe59fdd0cc2040edbdcb5a0;hb=7e69c04f557e46fb50e5a888a3bc3451afbd3b8e;hp=ba3991b28ab6151297a44234fa40d485de0cd512;hpb=4cdfc5e86b64137d96c31495cbdea99801714c2b;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-port-input.h b/include/babeltrace/graph/self-component-port-input.h index ba3991b2..150499a2 100644 --- a/include/babeltrace/graph/self-component-port-input.h +++ b/include/babeltrace/graph/self-component-port-input.h @@ -25,7 +25,7 @@ /* * For bt_port_input, bt_self_component_port, - * bt_self_component_port_input + * bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST */ #include @@ -38,14 +38,14 @@ bt_self_component_port * bt_self_component_port_input_as_self_component_port( bt_self_component_port_input *self_component_port) { - return (void *) self_component_port; + return __BT_UPCAST(bt_self_component_port, self_component_port); } static inline const bt_port_input *bt_self_component_port_input_as_port_input( const bt_self_component_port_input *self_component_port) { - return (const void *) self_component_port; + return __BT_UPCAST_CONST(bt_port_input, self_component_port); } #ifdef __cplusplus