[ofa-general] [PATCH] infiniband-diags/common: use enum MAD_DEST as ibd_dest_type type
Sasha Khapyorsky
sashak at voltaire.com
Thu Feb 5 10:21:28 PST 2009
Use introduced 'enum MAD_DEST' as type of ibd_dest_type variable.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/include/ibdiag_common.h | 2 +-
infiniband-diags/src/ibdiag_common.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/infiniband-diags/include/ibdiag_common.h b/infiniband-diags/include/ibdiag_common.h
index b92aa4d..4783b8e 100644
--- a/infiniband-diags/include/ibdiag_common.h
+++ b/infiniband-diags/include/ibdiag_common.h
@@ -41,7 +41,7 @@ extern int ibdebug;
extern int ibverbose;
extern char *ibd_ca;
extern int ibd_ca_port;
-extern int ibd_dest_type;
+extern enum MAD_DEST ibd_dest_type;
extern ib_portid_t *ibd_sm_id;
extern int ibd_timeout;
diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdiag_common.c
index 7d6e772..bda1efa 100644
--- a/infiniband-diags/src/ibdiag_common.c
+++ b/infiniband-diags/src/ibdiag_common.c
@@ -57,7 +57,7 @@ int ibdebug;
int ibverbose;
char *ibd_ca;
int ibd_ca_port;
-int ibd_dest_type = IB_DEST_LID;
+enum MAD_DEST ibd_dest_type = IB_DEST_LID;
ib_portid_t *ibd_sm_id;
int ibd_timeout;
--
1.6.1.rc1.45.g123ed
More information about the general
mailing list