[openib-general] [PATCH] osm: trivial casting for compilation on windows
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Thu Feb 1 02:35:01 PST 2007
Trivial casting for compilation on windows
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
osm/opensm/osm_subnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/osm/opensm/osm_subnet.c b/osm/opensm/osm_subnet.c
index f2e909b..e4e69c0 100644
--- a/osm/opensm/osm_subnet.c
+++ b/osm/opensm/osm_subnet.c
@@ -562,7 +562,7 @@ __osm_subn_opts_unpack_uint16(
if (!strcmp(p_req_key, p_key))
{
- val = strtoul(p_val_str, NULL, 0);
+ val = (uint16_t)strtoul(p_val_str, NULL, 0);
if (val != *p_val)
{
char buff[128];
--
1.4.4.1.GIT
More information about the general
mailing list