#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_sysdef_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/SysDef.cpp
+++ ibutils-1.2-OFED-1.4.2/ibdm/ibdm/SysDef.cpp
@@ -79,7 +79,7 @@

       // 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);

