[ofw] [PATCH] osmtest - clarify assignment operation

Stan C. Smith stan.smith at intel.com
Mon Oct 12 10:17:12 PDT 2009


Clarify assignment & remove WDK compiler warning.

Signed-off-by: stan smith <stan.smith at intel.com>

diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c
index 4bb9f82..6bfd7a6 100644
--- a/opensm/osmtest/main.c
+++ b/opensm/osmtest/main.c
@@ -433,7 +433,7 @@ int main(int argc, char *argv[])
 			/*
 			 * Specifies the max LID to search for during exploration.
 			 */
-			max_lid = atoi(optarg);
+			max_lid = (uint16_t) atoi(optarg);
 			printf("\tMAX-LID %u\n", max_lid);
 			break;
 




More information about the ofw mailing list