public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8
@ 2009-09-30 23:21 Sean Hefty
       [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Hefty @ 2009-09-30 23:21 UTC (permalink / raw)
  To: linux-rdma, 'Sasha Khapyorsky', Hefty, Sean

This fixes a build warning / error on windows.

Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---

 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-01 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 23:21 [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Sean Hefty
     [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-09-30 23:22   ` [PATCH 2/2] libibmad/resolve: add include to pick up inet_pton Sean Hefty
     [not found]     ` <B3D9536B45F044569239C2EF308D6BBD-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-01 18:00       ` Sasha Khapyorsky
2009-10-01 17:59   ` [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Sasha Khapyorsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox