@@ -1368,7 +1368,7 @@ static int reorder_links(lash_t *p_lash, mesh_t *mesh)
/*
* compare two switches in a sort
*/
-static int compare_switches(const void *p1, const void *p2)
+static int OSM_CDECL compare_switches(const void *p1, const void *p2)
{
const comp_t *cp1 = p1, *cp2 = p2;
const sort_ctx_t *ctx = &cp1->ctx;
@@ -225,7 +225,7 @@ typedef struct ftree_fabric_t_ {
**
***************************************************/
-static int compare_switches_by_index(IN const void *p1, IN const void *p2)
+static int OSM_CDECL compare_switches_by_index(IN const void *p1, IN const void *p2)
{
ftree_sw_t **pp_sw1 = (ftree_sw_t **) p1;
ftree_sw_t **pp_sw2 = (ftree_sw_t **) p2;
@@ -242,7 +242,7 @@ static int compare_switches_by_index(IN const void *p1, IN const void *p2)
/***************************************************/
-static int
+static int OSM_CDECL
compare_port_groups_by_remote_switch_index(IN const void *p1, IN const void *p2)
{
ftree_port_group_t **pp_g1 = (ftree_port_group_t **) p1;
@@ -723,7 +723,7 @@ static void sw_count_endport_links(osm_switch_t * sw)
}
}
-static int compar_sw_load(const void *s1, const void *s2)
+static int OSM_CDECL compar_sw_load(const void *s1, const void *s2)
{
#define get_sw_endport_links(s) (*(osm_switch_t **)s)->endport_links
return get_sw_endport_links(s2) - get_sw_endport_links(s1);