From: Jérémie Galarneau Date: Tue, 19 Apr 2016 21:35:44 +0000 (-0400) Subject: Cast destroy_text to bt_component_destroy_cb X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a97c4b1a67828b35c37cf3d745c7014d459c045c;p=deliverable%2Fbabeltrace.git Cast destroy_text to bt_component_destroy_cb Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/text/text.c b/plugins/text/text.c index cdd92fd86..a126b6f0f 100644 --- a/plugins/text/text.c +++ b/plugins/text/text.c @@ -127,7 +127,8 @@ enum bt_component_status text_component_init( goto end; } - ret = bt_component_set_destroy_cb(component, destroy_text); + ret = bt_component_set_destroy_cb(component, + (bt_component_destroy_cb) destroy_text); if (ret != BT_COMPONENT_STATUS_OK) { goto error; }