[openib-general] Opensm - casting issues

Yael Kalka eitan at mtl001.openib.org
Tue Sep 13 01:19:09 PDT 2005


Hi Hal,

Attached is a patch to fix some casting issues in osm_pkey.h.
In Linux it compiles fine, but under Windows I get compilation errors due to the problem.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>
Index: opensm/osm_pkey.c
===================================================================
--- opensm/osm_pkey.c   (revision 3395)
+++ opensm/osm_pkey.c   (working copy)
@@ -202,7 +202,8 @@ osm_physp_share_pkey(
   IN const osm_physp_t*  const p_physp_1,
   IN const osm_physp_t*  const p_physp_2 ) {
 
-  ib_net16_t *pkey1, *pkey2, pkey1_base, pkey2_base;
+  ib_net16_t *pkey1, *pkey2;
+  uint64_t pkey1_base, pkey2_base;
   const osm_pkey_tbl_t *pkey_tbl1, *pkey_tbl2;
   cl_map_iterator_t map_iter1, map_iter2;
 




More information about the general mailing list