[ofa-general] Re: [ofw] [PATCH-resend] ib-mgmt/libibnetdisc: fix typecast warning
Sasha Khapyorsky
sashak at voltaire.com
Sat Jun 13 02:30:11 PDT 2009
On 08:10 Wed 10 Jun , Sean Hefty wrote:
> Signed-off-by: Sean Hefty <sean.hefty at intel.com>
This patch is malformed (see below), so I applied the original. Thanks.
Sasha
> ---
> 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)
^^^ line break
> 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