[ofw] [PATCH] ib-mgmt/libibnetdisc: fix typecast warning

Sean Hefty sean.hefty at intel.com
Wed May 27 11:08:10 PDT 2009


Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
I tried converting ib_portid_t lid to a uint16_t, but that resulted in a cascade
of changes, so I kept the simple approach.  :)

The management tree needs major help with typedefs

 infiniband-diags/libibnetdisc/src/ibnetdisc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
index 1e93ff8..baea98e 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -188,7 +188,7 @@ extend_dpath(struct ibnd_fabric *f, ib_portid_t *portid, int nextport)
 					f->fabric.ibmad_port) < 0)
 				return -1;
 
-		portid->drpath.drslid = f->selfportid.lid;
+		portid->drpath.drslid = (uint16_t) f->selfportid.lid;
 		portid->drpath.drdlid = 0xFFFF;
 	}
 






More information about the ofw mailing list