X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-source.h;fp=include%2Fbabeltrace%2Fgraph%2Fself-component-source.h;h=5fdee3f33e416bc884277f64ed6d1144c61a389f;hp=3b96af1e2592b085aaf51b42f5bbbd8db642a808;hb=005f1204d7620018bb2c1406b6194940f0ee119f;hpb=25f741168b45db9dd975136cfd3f66dbd9af39d0 diff --git a/include/babeltrace/graph/self-component-source.h b/include/babeltrace/graph/self-component-source.h index 3b96af1e..5fdee3f3 100644 --- a/include/babeltrace/graph/self-component-source.h +++ b/include/babeltrace/graph/self-component-source.h @@ -30,7 +30,7 @@ /* * For bt_component_source, bt_self_component, bt_self_component_source, - * bt_self_component_port_output + * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST */ #include @@ -42,7 +42,7 @@ static inline bt_self_component *bt_self_component_source_as_self_component( bt_self_component_source *self_comp_source) { - return (void *) self_comp_source; + return __BT_UPCAST(bt_self_component, self_comp_source); } static inline @@ -50,7 +50,7 @@ const bt_component_source * bt_self_component_source_as_component_source( bt_self_component_source *self_comp_source) { - return (const void *) self_comp_source; + return __BT_UPCAST_CONST(bt_component_source, self_comp_source); } extern bt_self_component_port_output *