[ofw] [PATCH 2/6] [ib-diag] ibroute: add support for WinOF

Sean Hefty sean.hefty at intel.com
Wed Feb 18 17:46:38 PST 2009


Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---

 infiniband-diags/src/ibroute.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/infiniband-diags/src/ibroute.c b/infiniband-diags/src/ibroute.c
index 144d1b2..d1049ad 100644
--- a/infiniband-diags/src/ibroute.c
+++ b/infiniband-diags/src/ibroute.c
@@ -45,7 +45,7 @@
 
 #include <infiniband/umad.h>
 #include <infiniband/mad.h>
-#include <infiniband/complib/cl_nodenamemap.h>
+#include <complib/cl_nodenamemap.h>
 
 #include "ibdiag_common.h"
 
@@ -327,7 +327,7 @@ dump_unicast_tables(ib_portid_t *portid, int startlid, int endlid)
 
 		for (;i < e; i++) {
 			unsigned outport = lft[i % IB_SMP_DATA_SIZE];
-			unsigned valid = (outport <= nports);
+			unsigned valid = (outport <= (unsigned) nports);
 
 			if (!valid && !dump_all)
 				continue;
@@ -370,7 +370,7 @@ int main(int argc, char **argv)
 		{ "all", 'a', 0, NULL, "show all lids, even invalid entries" },
 		{ "no_dests", 'n', 0, NULL, "do not try to resolve destinations" },
 		{ "Multicast", 'M', 0, NULL, "show multicast forwarding tables" },
-		{ }
+		{ 0 }
 	};
 	char usage_args[] = "[<dest dr_path|lid|guid> [<startlid> [<endlid>]]]";
 	const char *usage_examples[] = {






More information about the ofw mailing list