summaryrefslogtreecommitdiff
path: root/libdw/dwarf_getsrclines.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-06-18 13:56:02 -0700
committerRoland McGrath <roland@redhat.com>2009-06-18 13:56:02 -0700
commit05c4e04640d173a4d1ce6e2f25a24060c21a67ab (patch)
treef1052ed5ea333ead54b01b4f7f9ea4c659cb1af2 /libdw/dwarf_getsrclines.c
parent99d2372b25d1231d786b70278478c7a112f2b27c (diff)
downloadelfutils-05c4e04640d173a4d1ce6e2f25a24060c21a67ab.tar.gz
Do some constification to avoid dubious casts.
Diffstat (limited to 'libdw/dwarf_getsrclines.c')
-rw-r--r--libdw/dwarf_getsrclines.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
index efd0459f..43fad99a 100644
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -424,8 +424,7 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
/* The value is an address. The size is defined as
apporiate for the target machine. We use the
address size field from the CU header. */
- if (__libdw_read_address_inc (dbg, IDX_debug_line,
- (unsigned char **)&linep,
+ if (__libdw_read_address_inc (dbg, IDX_debug_line, &linep,
cu->address_size, &address))
goto out;
break;