[openib-general] [PATCH] Opensm - osmt_slvl_vl_arb.c - changes for windows

Yael Kalka yael at mellanox.co.il
Mon Feb 13 05:24:01 PST 2006


Hi Hal,

Yet another patch with changes of the some includes for the windows
compilation, and type casting fixes.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: osmtest/osmt_slvl_vl_arb.c
===================================================================
--- osmtest/osmt_slvl_vl_arb.c  (revision 5380)
+++ osmtest/osmt_slvl_vl_arb.c  (working copy)
@@ -46,7 +46,9 @@
 
 /* next error code: 16A    */
 
+#ifndef __WIN__
 #include <unistd.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -296,7 +298,8 @@ osmtest_write_slvl_map_table( IN osmtest
   for (i = 0; i<16; i++) fprintf( fh,"| %-2u  ", i);
   fprintf( fh, "|\nVL:");
 
-  for (i = 0; i<16; i++) fprintf( fh,"| 0x%01X ",ib_slvl_table_get( &p_rec->slvl_tbl, i));
+  for (i = 0; i<16; i++) 
+    fprintf( fh,"| 0x%01X ",ib_slvl_table_get( &p_rec->slvl_tbl, (uint8_t)i));
   fprintf( fh,"|\nEND\n\n");
 
   /*  Exit: */




More information about the general mailing list