~andol/ubuntu/utopic/ibutils/fix-for-1426711

« back to all changes in this revision

Viewing changes to debian/patches/02_sysdef_diff.patch

  • Committer: Package Import Robot
  • Author(s): Roland Dreier
  • Date: 2012-10-15 16:13:03 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20121015161303-e7942h4eic9xy48u
Tags: 1.5.7-0.1
* Non-maintainer upload.
* Acknowledge NMU.
* New upstream release.
* Bump Standards-Version to 3.9.4 (no changes).
* Drop build depends on libibcommon.
* Drop all patches (merged upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: <benoit.mortier@opensides.be>
2
 
Subject: fix char * problem
3
 
 
4
 
 
5
 
--- ibutils-1.2-OFED-1.4.2.orig/ibdm/ibdm/SysDef.cpp
6
 
+++ ibutils-1.2-OFED-1.4.2/ibdm/ibdm/SysDef.cpp
7
 
@@ -79,7 +79,7 @@
8
 
 
9
 
       // the device number should be embedded in the master name of
10
 
       // the node: MT23108 ...
11
 
-      char *p_digit;
12
 
+      const char *p_digit;
13
 
       if ((p_digit = strpbrk(p_inst->master.c_str(), "0123456789")) != NULL)
14
 
         sscanf(p_digit,"%u", &p_node->devId);
15