X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-filter.h;h=3fec35cf8424e6c89d088d8ba389b1e748d70ec0;hp=8d12e106e4ec36cc3c9856e5c912e4899b3520d1;hb=8470daa9621083d091cb52af01eb17f35a0978b6;hpb=72b0443813701fc9fb23cb23684a9c8bee4667a7 diff --git a/include/babeltrace/graph/self-component-filter.h b/include/babeltrace/graph/self-component-filter.h index 8d12e106..3fec35cf 100644 --- a/include/babeltrace/graph/self-component-filter.h +++ b/include/babeltrace/graph/self-component-filter.h @@ -31,7 +31,8 @@ /* * For bt_component_filter, bt_self_component, bt_self_component_filter, - * bt_self_component_port_input, bt_self_component_port_output + * bt_self_component_port_input, bt_self_component_port_output, + * __BT_UPCAST, __BT_UPCAST_CONST */ #include @@ -43,7 +44,7 @@ static inline bt_self_component *bt_self_component_filter_as_self_component( bt_self_component_filter *self_comp_filter) { - return (void *) self_comp_filter; + return __BT_UPCAST(bt_self_component, self_comp_filter); } static inline @@ -51,7 +52,7 @@ const bt_component_filter * bt_self_component_filter_as_component_filter( bt_self_component_filter *self_comp_filter) { - return (const void *) self_comp_filter; + return __BT_UPCAST_CONST(bt_component_filter, self_comp_filter); } extern bt_self_component_port_output *