From: Patrick Marchand Latifi Date: Fri, 14 Mar 2008 21:31:40 +0000 (-0700) Subject: fix openib_scm compiler warning X-Git-Tag: dapl-2.0.8-1~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b3f020e5cba765077049a8cf61c4ce5009fa1031;p=~ardavis%2Fdapl.git fix openib_scm compiler warning Cast to socklen_t since accept(2) expects an unsigned argument. Makes the openib_scm provider now build successfully when using make VERBS= (the -Werror flag was causing the build failure) Signed-off-by: Patrick Marchand Latifi --- diff --git a/dapl/openib_scm/dapl_ib_cm.c b/dapl/openib_scm/dapl_ib_cm.c index ea75453..f534e8d 100644 --- a/dapl/openib_scm/dapl_ib_cm.c +++ b/dapl/openib_scm/dapl_ib_cm.c @@ -347,7 +347,7 @@ dapli_socket_accept(ib_cm_srvc_handle_t cm_ptr) len = sizeof(acm_ptr->dst.ia_address); acm_ptr->socket = accept(cm_ptr->l_socket, (struct sockaddr*)&acm_ptr->dst.ia_address, - &len ); + (socklen_t*)&len ); if ( acm_ptr->socket < 0 ) { dapl_dbg_log(DAPL_DBG_TYPE_ERR,