[openib-general] [PATCH] OpenSM/osm_ucast_file: Eliminate compiler warning

Hal Rosenstock halr at voltaire.com
Wed Jun 14 06:39:04 PDT 2006


OpenSM/osm_ucast_file: Eliminate compiler warning

osm_ucast_file.c: In function `do_ucast_file_load':
osm_ucast_file.c:156: warning: passing arg 2 of `cl_qmap_apply_func'
from incompatible pointer type

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: opensm/osm_ucast_file.c
===================================================================
--- opensm/osm_ucast_file.c	(revision 8000)
+++ opensm/osm_ucast_file.c	(working copy)
@@ -114,9 +114,9 @@ static void add_path(osm_opensm_t * p_os
 			  (osm_switch_get_node_ptr(p_sw))));
 }
 
-static void clean_sw_fwd_table(void *arg, void *context)
+static void clean_sw_fwd_table(cl_map_item_t* const p_map_item, void *context)
 {
-	osm_switch_t *p_sw = arg;
+	osm_switch_t * const p_sw = (osm_switch_t *)p_map_item;
 	uint16_t lid, max_lid;
 
 	max_lid = osm_switch_get_max_lid_ho(p_sw);







More information about the general mailing list