[ofa-general] [PATCH] bibnetdisc/ibnetdisc.c: fix parameter incompatibility warning
Sasha Khapyorsky
sashak at voltaire.com
Fri Jul 31 17:04:17 PDT 2009
Fix function parameter pointer type incompatibility compilation warning.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
On 10:12 Mon 27 Jul , Al Chu wrote:
> --- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
> +++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
> @@ -602,7 +602,7 @@ ibnd_discover_fabric(struct ibmad_port *ibmad_port, int timeout_ms,
>
> return ((ibnd_fabric_t *)fabric);
> error:
> - free(fabric);
> + ibnd_destroy_fabric(fabric);
> return (NULL);
> }
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 230b3ea..7ce07e3 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -615,7 +615,7 @@ ibnd_discover_fabric(struct ibmad_port *ibmad_port, int timeout_ms,
return ((ibnd_fabric_t *)fabric);
error:
- ibnd_destroy_fabric(fabric);
+ ibnd_destroy_fabric((ibnd_fabric_t *)fabric);
return (NULL);
}
--
1.6.4
More information about the general
mailing list