[ofa-general] [PATCH v2] [TRIVIAL] opensm/osm_state_mgr.c: fixing some data types

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Sun Jun 29 23:49:05 PDT 2008


Fixing some data types and solving compiler warnings
in the corresponding log messages.

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_state_mgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 9a8409b..734df79 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -862,7 +862,7 @@ static void __osm_state_mgr_check_tbl_consistency(IN osm_sm_t * sm)
 	osm_port_t *p_port;
 	osm_port_t *p_next_port;
 	cl_ptr_vector_t *p_port_lid_tbl;
-	size_t max_lid, ref_size, curr_size, lid;
+	uint16_t max_lid, ref_size, curr_size, lid;
 	osm_port_t *p_port_ref, *p_port_stored;
 	cl_ptr_vector_t ref_port_lid_tbl;
 	uint16_t min_lid_ho;
-- 
1.5.1.4





More information about the general mailing list