~ubuntu-branches/ubuntu/raring/ibutils/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/01_topomatch_diff.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2010-01-11 22:22:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100111222200-om8buugk27l7rp6t
Tags: 1.2-OFED-1.4.2-1
* Initial release (Closes: #539801)
* Removed ibnlfile.pdf because we have no source

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 01_topomatch_diff.dpatch by  <benoit.mortier@opensides.be>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: fix char * problem
 
6
 
 
7
@DPATCH@
 
8
 
 
9
--- ibutils-1.2-OFED-1.4.2.orig/ibdm/ibdm/TopoMatch.cpp
 
10
+++ ibutils-1.2-OFED-1.4.2/ibdm/ibdm/TopoMatch.cpp
 
11
@@ -676,7 +676,7 @@
 
12
   IBSystem *p_system = p_node->p_system;
 
13
 
 
14
   // we always mark the board of the node by examining all but the "UXXX"
 
15
-  char *p_lastSlash = rindex(p_node->name.c_str(), '/');
 
16
+  const char *p_lastSlash = rindex(p_node->name.c_str(), '/');
 
17
   char nodeBoardName[512];
 
18
   int  boardNameLength;
 
19
   if (!p_lastSlash) {
 
20