[ofa-general] [PATCH] libibmad/resolve.c: Remove compile warning on x86_64 arch

hnrose at comcast.net hnrose at comcast.net
Mon Jun 1 04:46:22 PDT 2009


resolve.c:106: warning: pointer targets in passing argument 1 of 'mad_decode_field' differ in signedness

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>

diff --git a/libibmad/src/resolve.c b/libibmad/src/resolve.c
index f17da11..abcab17 100644
--- a/libibmad/src/resolve.c
+++ b/libibmad/src/resolve.c
@@ -103,7 +103,7 @@ int ib_resolve_guid_via(ib_portid_t * portid, uint64_t * guid,
 			       buf)) < 0)
 		return -1;
 
-	mad_decode_field(buf, IB_SA_PR_SL_F, &portid->sl);
+	mad_decode_field((uint8_t *)buf, IB_SA_PR_SL_F, &portid->sl);
 	return 0;
 }
 



More information about the general mailing list