]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
fix openib_scm compiler warning
authorPatrick Marchand Latifi <patrick.latifi@qlogic.com>
Fri, 14 Mar 2008 21:31:40 +0000 (14:31 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Mon, 17 Mar 2008 18:09:59 +0000 (10:09 -0800)
Cast to socklen_t since accept(2) expects an unsigned argument.

Makes the openib_scm provider now build successfully when using
make VERBS=<provider> (the -Werror flag was causing the build
failure)

Signed-off-by: Patrick Marchand Latifi <patrick.latifi@qlogic.com>
dapl/openib_scm/dapl_ib_cm.c

index ea754534826f4a7ac6d8759ed0c0aa9f08ac5d30..f534e8d984c16994b4f58c8041135619e5703e46 100644 (file)
@@ -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,