[ofa-general] [ofw] [PATCH-resend] ib-mgmt/libibnetdisc: fix typecast warning
Sean Hefty
sean.hefty at intel.com
Wed Jun 10 08:10:29 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. :)
Resending - I didn't see a response to this.
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;
}
_______________________________________________
ofw mailing list
ofw at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
More information about the general
mailing list