This fixes a build warning / error on windows.

Signed-off-by: Sean Hefty <[email protected]>
---

 libibmad/src/rpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index 026575d..1ea9a52 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -195,7 +195,7 @@ static int redirect_port(ib_portid_t * port, uint8_t * mad)
 
        port->qp = mad_get_field(mad, 64, IB_CPI_REDIRECT_QP_F);
        port->qkey = mad_get_field(mad, 64, IB_CPI_REDIRECT_QKEY_F);
-       port->sl = mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F);
+       port->sl = (uint8_t) mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F);
 
        /* TODO: Reverse map redirection P_Key to P_Key index */
 



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to