[ofa-general] [PATCH] infinabd-diags: convert type uint -> unsigned int
Sasha Khapyorsky
sashak at voltaire.com
Sat Dec 13 12:55:40 PST 2008
Convert uint type to unsignedint in accordance with c99 definitions.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/src/ibping.c | 2 +-
infiniband-diags/src/sminfo.c | 4 ++--
infiniband-diags/src/smpquery.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/infiniband-diags/src/ibping.c b/infiniband-diags/src/ibping.c
index ceb6dd4..4fd2dcb 100644
--- a/infiniband-diags/src/ibping.c
+++ b/infiniband-diags/src/ibping.c
@@ -194,7 +194,7 @@ main(int argc, char **argv)
int timeout = 0, udebug = 0, server = 0, flood = 0;
int oui = IB_OPENIB_OUI;
uint64_t rtt;
- uint count = ~0;
+ unsigned count = ~0;
extern int ibdebug;
char *err;
char *ca = 0;
diff --git a/infiniband-diags/src/sminfo.c b/infiniband-diags/src/sminfo.c
index fdd3071..c811057 100644
--- a/infiniband-diags/src/sminfo.c
+++ b/infiniband-diags/src/sminfo.c
@@ -78,7 +78,7 @@ char *statestr[] = {
[SMINFO_MASTER] "SMINFO_MASTER",
};
-#define STATESTR(s) (((uint)(s)) < SMINFO_STATE_LAST ? statestr[s] : "???")
+#define STATESTR(s) (((unsigned)(s)) < SMINFO_STATE_LAST ? statestr[s] : "???")
int
main(int argc, char **argv)
@@ -88,7 +88,7 @@ main(int argc, char **argv)
ib_portid_t portid = {0};
int timeout = 0; /* use default */
uint8_t *p;
- uint act = 0;
+ unsigned act = 0;
int prio = 0, state = SMINFO_STANDBY;
uint64_t guid = 0, key = 0;
extern int ibdebug;
diff --git a/infiniband-diags/src/smpquery.c b/infiniband-diags/src/smpquery.c
index 0e55afb..ed8ec83 100644
--- a/infiniband-diags/src/smpquery.c
+++ b/infiniband-diags/src/smpquery.c
@@ -178,7 +178,7 @@ pkey_table(ib_portid_t *dest, char **argv, int argc)
uint8_t data[IB_SMP_DATA_SIZE];
uint32_t i, j, k;
uint16_t *p;
- uint mod;
+ unsigned mod;
int n, t, phy_ports;
int portnum = 0;
@@ -355,7 +355,7 @@ guid_info(ib_portid_t *dest, char **argv, int argc)
uint8_t data[IB_SMP_DATA_SIZE];
uint32_t i, j, k;
uint64_t *p;
- uint mod;
+ unsigned mod;
int n;
/* Get the guid capacity */
--
1.6.0.4.766.g6fc4a
More information about the general
mailing list