ibutils (1.2-OFED-1.4.2-1) 01_topomatch_diff

Summary

 ibdm/ibdm/TopoMatch.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_topomatch_diff.dpatch by  <benoit.mortier@opensides.be>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: fix char * problem

@DPATCH@

--- ibutils-1.2-OFED-1.4.2.orig/ibdm/ibdm/TopoMatch.cpp
+++ ibutils-1.2-OFED-1.4.2/ibdm/ibdm/TopoMatch.cpp
@@ -676,7 +676,7 @@
   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) {