From: Florian Krohm Date: Thu, 23 Oct 2014 11:38:12 +0000 (+0000) Subject: Followup to r14656. Fix compile problem on Darwin. X-Git-Tag: svn/VALGRIND_3_11_0~891 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f8a4084b9adcc2f4efd57cf92e720a1f77c80d9;p=thirdparty%2Fvalgrind.git Followup to r14656. Fix compile problem on Darwin. Patch by Rhys Kidd . git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14657 --- diff --git a/coregrind/m_debuginfo/readmacho.c b/coregrind/m_debuginfo/readmacho.c index 31d324ebd2..21553e9e70 100644 --- a/coregrind/m_debuginfo/readmacho.c +++ b/coregrind/m_debuginfo/readmacho.c @@ -703,8 +703,8 @@ Bool ML_(read_macho_debug_info)( struct _DebugInfo* di ) Bool have_uuid = False; UChar uuid[16]; Word i; - struct _DebugInfoMapping* rx_map = NULL; - struct _DebugInfoMapping* rw_map = NULL; + const DebugInfoMapping* rx_map = NULL; + const DebugInfoMapping* rw_map = NULL; /* mmap the object file to look for di->soname and di->text_bias and uuid and nlist */ @@ -715,7 +715,7 @@ Bool ML_(read_macho_debug_info)( struct _DebugInfo* di ) vg_assert(di->fsm.have_rw_map); for (i = 0; i < VG_(sizeXA)(di->fsm.maps); i++) { - struct _DebugInfoMapping* map = VG_(indexXA)(di->fsm.maps, i); + const DebugInfoMapping* map = VG_(indexXA)(di->fsm.maps, i); if (map->rx && !rx_map) rx_map = map; if (map->rw && !rw_map)