diff mbox

osmtest - fix signed unsigned comparisons

Message ID F7FAC243E7364BC582B7FCDBE42FB384@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Oct. 12, 2009, 5:21 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c
index 4bb9f82..588a477 100644
--- a/opensm/osmtest/main.c
+++ b/opensm/osmtest/main.c
@@ -214,7 +214,7 @@  static void print_all_guids(IN osmtest_t * p_osmt)
 	ib_api_status_t status;
 	uint32_t num_ports = MAX_LOCAL_IBPORTS;
 	ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS];
-	int i;
+	uint32_t i;
 
 	for (i = 0; i < num_ports; i++) {
 		attr_array[i].num_pkeys = 0;
@@ -247,7 +247,7 @@  ib_net64_t get_port_guid(IN osmtest_t * p_osmt, uint64_t port_guid)
 	ib_api_status_t status;
 	uint32_t num_ports = MAX_LOCAL_IBPORTS;
 	ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS];
-	int i;
+	uint32_t i;
 
 	for (i = 0; i < num_ports; i++) {
 		attr_array[i].num_pkeys = 0;
diff --git a/opensm/osmtest/osmtest.c b/opensm/osmtest/osmtest.c
index c6ec955..a1457b8 100644
--- a/opensm/osmtest/osmtest.c
+++ b/opensm/osmtest/osmtest.c
@@ -7237,7 +7237,7 @@  osmtest_bind(IN osmtest_t * p_osmt,
 	ib_api_status_t status;
 	uint32_t num_ports = MAX_LOCAL_IBPORTS;
 	ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS];
-	int i;
+	uint32_t i;
 
 	OSM_LOG_ENTER(&p_osmt->log);