Do some constification to avoid dubious casts.
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index 97a2e04..eacc49f 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -511,10 +511,10 @@
static inline int
__libdw_read_address_inc (Dwarf *dbg,
- int sec_index, unsigned char **addrp,
+ int sec_index, const unsigned char **addrp,
int width, Dwarf_Addr *ret)
{
- unsigned char *addr = *addrp;
+ const unsigned char *addr = *addrp;
READ_AND_RELOCATE (__libdw_relocate_address, (*ret));
*addrp = addr;
return 0;
@@ -531,11 +531,11 @@
static inline int
__libdw_read_offset_inc (Dwarf *dbg,
- int sec_index, unsigned char **addrp,
+ int sec_index, const unsigned char **addrp,
int width, Dwarf_Off *ret, int sec_ret,
size_t size)
{
- unsigned char *addr = *addrp;
+ const unsigned char *addr = *addrp;
READ_AND_RELOCATE (__libdw_relocate_offset, (*ret));
*addrp = addr;
return __libdw_offset_in_section (dbg, sec_ret, *ret, size);