From b25be7a7c1a082fc308d24bf0b32f26c6933e607 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Latifi Date: Fri, 14 Mar 2008 14:30:20 -0700 Subject: [PATCH] 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 --- dapl/openib_scm/dapl_ib_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.41.0