[openib-general] [PATCH] osm: TRIVIAL - fixing data types
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Wed Jan 3 04:12:30 PST 2007
Hi Hal.
Some trivial data type fixes
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
osm/opensm/osm_ucast_ftree.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/osm/opensm/osm_ucast_ftree.c b/osm/opensm/osm_ucast_ftree.c
index eb7cf96..e937982 100644
--- a/osm/opensm/osm_ucast_ftree.c
+++ b/osm/opensm/osm_ucast_ftree.c
@@ -209,7 +209,7 @@ typedef struct ftree_fabric_t_
cl_qmap_t hca_tbl;
cl_qmap_t sw_tbl;
cl_qmap_t sw_by_tuple_tbl;
- uint16_t tree_rank;
+ uint8_t tree_rank;
ftree_sw_t ** leaf_switches;
uint32_t leaf_switches_num;
uint16_t max_hcas_per_leaf;
@@ -1026,7 +1026,7 @@ __osm_ftree_fabric_destroy(ftree_fabric_
/***************************************************/
static void
-__osm_ftree_fabric_set_rank(ftree_fabric_t * p_ftree, uint16_t rank)
+__osm_ftree_fabric_set_rank(ftree_fabric_t * p_ftree, uint8_t rank)
{
if (rank > p_ftree->tree_rank)
p_ftree->tree_rank = rank;
@@ -1034,7 +1034,7 @@ __osm_ftree_fabric_set_rank(ftree_fabric
/***************************************************/
-static uint16_t
+static uint8_t
__osm_ftree_fabric_get_rank(ftree_fabric_t * p_ftree)
{
return p_ftree->tree_rank;
--
1.4.4.1.GIT
More information about the general
mailing list