summaryrefslogtreecommitdiff
path: root/libdw
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2009-04-28 18:36:17 +0200
committerPetr Machata <pmachata@redhat.com>2009-04-28 18:36:17 +0200
commitbd885ff694817b965231d99f1ab867947998e734 (patch)
tree2eb9270732ac3f39d3d9dc9aaa93d5a3f4a861bd /libdw
parent66fe03f1e489a88b89a15c9e13f9bd33db2729b1 (diff)
downloadelfutils-bd885ff694817b965231d99f1ab867947998e734.tar.gz
Constify read hook arguments
Diffstat (limited to 'libdw')
-rw-r--r--libdw/libdwP.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index b1332337..41676911 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -492,18 +492,20 @@ __libdw_read_offset_inc (Dwarf *dbg,
static inline int
__libdw_read_address (Dwarf *dbg,
- int sec_index, unsigned char *addr,
+ int sec_index, const unsigned char *addr,
int width, Dwarf_Addr *ret)
{
- return __libdw_read_address_inc (dbg, sec_index, &addr, width, ret);
+ return __libdw_read_address_inc (dbg, sec_index, (unsigned char **)&addr,
+ width, ret);
}
static inline int
__libdw_read_offset (Dwarf *dbg,
- int sec_index, unsigned char *addr,
+ int sec_index, const unsigned char *addr,
int width, Dwarf_Addr *ret)
{
- return __libdw_read_offset_inc (dbg, sec_index, &addr, width, ret);
+ return __libdw_read_offset_inc (dbg, sec_index, (unsigned char **)&addr,
+ width, ret);
}
#define ADDR_ESCAPE(width) \