summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_getlocation.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2009-06-18 13:56:02 -0700
committerRoland McGrath <[email protected]>2009-06-18 13:56:02 -0700
commit05c4e04640d173a4d1ce6e2f25a24060c21a67ab (patch)
treef1052ed5ea333ead54b01b4f7f9ea4c659cb1af2 /libdw/dwarf_getlocation.c
parent99d2372b25d1231d786b70278478c7a112f2b27c (diff)
Do some constification to avoid dubious casts.
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r--libdw/dwarf_getlocation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index f829e72b..504db376 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -1,5 +1,5 @@
/* Return location expression list.
- Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Red Hat, Inc.
+ Copyright (C) 2000-2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 2000.
@@ -151,7 +151,7 @@ getlocation (struct Dwarf_CU *cu, const Dwarf_Block *block,
{
case DW_OP_addr:
/* Address, depends on address size of CU. */
- if (__libdw_read_address_inc (dbg, sec_index, (unsigned char **)&data,
+ if (__libdw_read_address_inc (dbg, sec_index, &data,
cu->address_size, &newloc->number))
return -1;
break;