summaryrefslogtreecommitdiff
path: root/debian/patches/0002-dwarfutils_hurd.patch
blob: 939ede58181373642d1664205a01667a2db77fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Troy Heber <troyh@debian.org>
Date: Sat, 20 Oct 2012 14:47:43 +0400
Subject: dwarfutils_hurd

===================================================================
---
 dwarfdump2/print_die.cc |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dwarfdump2/print_die.cc b/dwarfdump2/print_die.cc
index 61e1844..b4754e8 100644
--- a/dwarfdump2/print_die.cc
+++ b/dwarfdump2/print_die.cc
@@ -1222,8 +1222,8 @@ traverse_attribute(Dwarf_Debug dbg, Dwarf_Die die, Dwarf_Half attr,
         /* Get the global offset for reference */
         res = dwarf_global_formref(attrib, &ref_off, &err);
         if (res != DW_DLV_OK) {
-            int errno = dwarf_errno(err);
-            if (errno == DW_DLE_REF_SIG8_NOT_HANDLED ) {
+            int ferrno = dwarf_errno(err);
+            if (ferrno == DW_DLE_REF_SIG8_NOT_HANDLED ) {
                 // No need to stop, ref_sig8 refers out of
                 // the current section.
                 break;
@@ -1234,8 +1234,8 @@ traverse_attribute(Dwarf_Debug dbg, Dwarf_Die die, Dwarf_Half attr,
         }
         res = dwarf_dieoffset(die, &die_off, &err);
         if (res != DW_DLV_OK) {
-            int errno = dwarf_errno(err);
-            if (errno == DW_DLE_REF_SIG8_NOT_HANDLED ) {
+            int ferrno = dwarf_errno(err);
+            if (ferrno == DW_DLE_REF_SIG8_NOT_HANDLED ) {
                 // No need to stop, ref_sig8 refers out of
                 // the current section.
                 break;