Hey Sasha,
Just noticed that true/false was not used consistently for some
variables.
Al
--
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
>From eb84a35076476167d7612bedd95f0648e29b0e69 Mon Sep 17 00:00:00 2001
From: Albert L. Chu <[EMAIL PROTECTED]>
Date: Tue, 1 Jul 2008 10:35:52 -0700
Subject: [PATCH] fix true/false usage
Signed-off-by: Albert L. Chu <[EMAIL PROTECTED]>
---
opensm/opensm/osm_port_info_rcv.c | 6 +++---
opensm/opensm/osm_sw_info_rcv.c | 2 +-
opensm/opensm/osm_sweep_fail_ctrl.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opensm/opensm/osm_port_info_rcv.c b/opensm/opensm/osm_port_info_rcv.c
index 2e3d94e..90eb48b 100644
--- a/opensm/opensm/osm_port_info_rcv.c
+++ b/opensm/opensm/osm_port_info_rcv.c
@@ -314,7 +314,7 @@ __osm_pi_rcv_process_switch_port(IN osm_sm_t * sm,
p_node->sw->need_update = 0;
if (p_physp->need_update)
- sm->p_subn->ignore_existing_lfts = 1;
+ sm->p_subn->ignore_existing_lfts = TRUE;
if (port_num == 0)
pi_rcv_check_and_fix_lid(sm->p_log, p_pi, p_physp);
@@ -562,8 +562,8 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
"GUID 0x%" PRIx64 " port 0x%016" PRIx64
", Commencing heavy sweep\n",
cl_ntoh64(node_guid), cl_ntoh64(port_guid));
- sm->p_subn->force_heavy_sweep = 1;
- sm->p_subn->ignore_existing_lfts = 1;
+ sm->p_subn->force_heavy_sweep = TRUE;
+ sm->p_subn->ignore_existing_lfts = TRUE;
goto Exit;
}
diff --git a/opensm/opensm/osm_sw_info_rcv.c b/opensm/opensm/osm_sw_info_rcv.c
index 90346a8..362d54f 100644
--- a/opensm/opensm/osm_sw_info_rcv.c
+++ b/opensm/opensm/osm_sw_info_rcv.c
@@ -516,7 +516,7 @@ void osm_si_rcv_process(IN void *context, IN void *data)
/* we might get back a request for signaling change was detected */
if (__osm_si_rcv_process_existing(sm, p_node, p_madw)) {
CL_PLOCK_RELEASE(sm->p_lock);
- sm->p_subn->force_heavy_sweep = 1;
+ sm->p_subn->force_heavy_sweep = TRUE;
goto Exit;
}
}
diff --git a/opensm/opensm/osm_sweep_fail_ctrl.c b/opensm/opensm/osm_sweep_fail_ctrl.c
index 4f931f5..63809de 100644
--- a/opensm/opensm/osm_sweep_fail_ctrl.c
+++ b/opensm/opensm/osm_sweep_fail_ctrl.c
@@ -60,7 +60,7 @@ static void __osm_sweep_fail_ctrl_disp_callback(IN void *context,
/*
Notify the state manager that we had a light sweep failure.
*/
- p_ctrl->sm->p_subn->force_heavy_sweep = 1;
+ p_ctrl->sm->p_subn->force_heavy_sweep = TRUE;
OSM_LOG_EXIT(p_ctrl->sm->p_log);
}
--
1.5.4.5
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general