comparison src/sysdll.c @ 3841:5989b9bbb612

[xemacs-hg @ 2007-02-22 16:19:40 by stephent] Various warning fixes. <87lkiqkvpa.fsf@uwakimon.sk.tsukuba.ac.jp>
author stephent
date Thu, 22 Feb 2007 16:19:44 +0000
parents 612eb81b76eb
children b3ea9c582280
comparison
equal deleted inserted replaced
3840:468d3e5fc353 3841:5989b9bbb612
265 * Note: image_for_address(), my_find_image() and search_linked_libs() are 265 * Note: image_for_address(), my_find_image() and search_linked_libs() are
266 * based on code from the dlcompat library 266 * based on code from the dlcompat library
267 * (http://www.opendarwin.org/projects/dlcompat). 267 * (http://www.opendarwin.org/projects/dlcompat).
268 */ 268 */
269 269
270 static struct mach_header* 270 static const struct mach_header*
271 image_for_address(void *address) 271 image_for_address(void *address)
272 { 272 {
273 unsigned long i; 273 unsigned long i;
274 unsigned long count = _dyld_image_count(); 274 unsigned long count = _dyld_image_count();
275 struct mach_header *mh = 0; 275 const struct mach_header *mh = 0;
276 276
277 for (i = 0; i < count; i++) 277 for (i = 0; i < count; i++)
278 { 278 {
279 unsigned long addr = (unsigned long)address - 279 unsigned long addr = (unsigned long)address -
280 _dyld_get_image_vmaddr_slide(i); 280 _dyld_get_image_vmaddr_slide(i);