This occurs under FC11 with gcc 4.4.0-4.

Signed-off-by: Sebastien Dugue <[email protected]>

---
 ibdm/ibdm/SysDef.cpp    |    2 +-
 ibdm/ibdm/TopoMatch.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ibdm/ibdm/SysDef.cpp b/ibdm/ibdm/SysDef.cpp
index 4d103cb..5616c64 100644
--- a/ibdm/ibdm/SysDef.cpp
+++ b/ibdm/ibdm/SysDef.cpp
@@ -79,7 +79,7 @@ IBSystemsCollection::makeSysNodes(
 
       // the device number should be embedded in the master name of
       // the node: MT23108 ...
-      char *p_digit;
+      const char *p_digit;
       if ((p_digit = strpbrk(p_inst->master.c_str(), "0123456789")) != NULL)
         sscanf(p_digit,"%u", &p_node->devId);
 
diff --git a/ibdm/ibdm/TopoMatch.cpp b/ibdm/ibdm/TopoMatch.cpp
index 11c9fdc..cbbb346 100644
--- a/ibdm/ibdm/TopoMatch.cpp
+++ b/ibdm/ibdm/TopoMatch.cpp
@@ -676,7 +676,7 @@ TopoReportMismatchedNode(
   IBSystem *p_system = p_node->p_system;
 
   // we always mark the board of the node by examining all but the "UXXX"
-  char *p_lastSlash = rindex(p_node->name.c_str(), '/');
+  const char *p_lastSlash = rindex(p_node->name.c_str(), '/');
   char nodeBoardName[512];
   int  boardNameLength;
   if (!p_lastSlash) {
-- 
1.6.3.1

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to