From fe51084d8e13c61aa6e6328d2427ade0628f632c Mon Sep 17 00:00:00 2001 From: Donald Kerr Date: Thu, 21 Feb 2008 16:19:06 +0000 Subject: [PATCH] fix compile warning by casting btl udapl module to base module before call to mca_btl_udapl_free This commit was SVN r17541. --- ompi/mca/btl/udapl/btl_udapl_component.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ompi/mca/btl/udapl/btl_udapl_component.c b/ompi/mca/btl/udapl/btl_udapl_component.c index 47e89b8322..0ac4284380 100644 --- a/ompi/mca/btl/udapl/btl_udapl_component.c +++ b/ompi/mca/btl/udapl/btl_udapl_component.c @@ -828,7 +828,8 @@ int mca_btl_udapl_component_progress() frag->base.des_cbfunc(&btl->super, endpoint, &frag->base, OMPI_SUCCESS); if( btl_ownership ) { - mca_btl_udapl_free(btl, &frag->base); + mca_btl_udapl_free((mca_btl_base_module_t*)btl, + &frag->base); } mca_btl_udapl_frag_progress_pending(btl, @@ -856,7 +857,8 @@ int mca_btl_udapl_component_progress() frag->base.des_cbfunc(&btl->super, endpoint, &frag->base, OMPI_SUCCESS); if( btl_ownership ) { - mca_btl_udapl_free(btl, &frag->base); + mca_btl_udapl_free((mca_btl_base_module_t*)btl, + &frag->base); } mca_btl_udapl_frag_progress_pending(btl, @@ -957,7 +959,8 @@ int mca_btl_udapl_component_progress() frag->base.des_cbfunc(&btl->super, endpoint, &frag->base, OMPI_SUCCESS); if( btl_ownership ) { - mca_btl_udapl_free(btl, &frag->base); + mca_btl_udapl_free((mca_btl_base_module_t*)btl, + &frag->base); } OPAL_THREAD_ADD32(&(endpoint->endpoint_sr_tokens[BTL_UDAPL_MAX_CONNECTION]), 1);