X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-filter.h;h=3fec35cf8424e6c89d088d8ba389b1e748d70ec0;hb=005f1204d7620018bb2c1406b6194940f0ee119f;hp=8d12e106e4ec36cc3c9856e5c912e4899b3520d1;hpb=25f741168b45db9dd975136cfd3f66dbd9af39d0;p=babeltrace.git 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 *