Clarify assignment & remove WDK compiler warning.
Signed-off-by: stan smith <[email protected]>
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;
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw