X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-output.h;fp=include%2Fbabeltrace%2Fgraph%2Fself-component-port-output.h;h=fee38aa84cc58211fadb4fed4da15f98c61302a6;hp=293f705bf4a2a1707824128a955532a5a7a0fe4f;hb=005f1204d7620018bb2c1406b6194940f0ee119f;hpb=25f741168b45db9dd975136cfd3f66dbd9af39d0 diff --git a/include/babeltrace/graph/self-component-port-output.h b/include/babeltrace/graph/self-component-port-output.h index 293f705b..fee38aa8 100644 --- a/include/babeltrace/graph/self-component-port-output.h +++ b/include/babeltrace/graph/self-component-port-output.h @@ -25,7 +25,7 @@ /* * For bt_port_output, bt_self_component_port, - * bt_self_component_port_output + * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST */ #include @@ -38,14 +38,14 @@ bt_self_component_port * bt_self_component_port_output_as_self_component_port( bt_self_component_port_output *self_component_port) { - return (void *) self_component_port; + return __BT_UPCAST(bt_self_component_port, self_component_port); } static inline const bt_port_output *bt_self_component_port_output_as_port_output( bt_self_component_port_output *self_component_port) { - return (const void *) self_component_port; + return __BT_UPCAST_CONST(bt_port_output, self_component_port); } #ifdef __cplusplus