(no subject)
Gerald Pfeifer
gerald at pfeifer.com
Wed Apr 7 02:29:04 CDT 2004
This fixes the following two (legitimate) compiler warnings:
elf_module.c:515: warning: passing arg 3 of `elf_search_and_load_file' makes integer from pointer without a cast
elf_module.c:607: warning: passing arg 3 of `elf_search_and_load_file' makes integer from pointer without a cast
Gerald
ChangeLog:
Cast third parameter of elf_search_and_load_file() to proper type.
Index: elf_module.c
===================================================================
RCS file: /home/wine/wine/dlls/dbghelp/elf_module.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 elf_module.c
--- elf_module.c 5 Apr 2004 22:21:27 -0000 1.1
+++ elf_module.c 7 Apr 2004 07:27:28 -0000
@@ -512,7 +512,8 @@ BOOL elf_synchronize_module_list(struct
read_mem(pcs->handle, (ULONG)lm.l_name, bufstr, sizeof(bufstr)))
{
bufstr[sizeof(bufstr) - 1] = '\0';
- elf_search_and_load_file(pcs, bufstr, lm.l_addr, &elf_info);
+ elf_search_and_load_file(pcs, bufstr, (unsigned long)lm.l_addr,
+ &elf_info);
}
}
@@ -604,7 +605,8 @@ struct module* elf_load_module(struct p
if (!p++) p = bufstr;
if (!memcmp(p, xname, strlen(xname)))
{
- sym_type = elf_search_and_load_file(pcs, bufstr, lm.l_addr, &elf_info);
+ sym_type = elf_search_and_load_file(pcs, bufstr,
+ (unsigned long)lm.l_addr, &elf_info);
break;
}
}
More information about the wine-patches
mailing list