diff src/sysdll.c @ 2054:91d4c8c65a0f

[xemacs-hg @ 2004-05-02 04:06:51 by malcolmp] Fix warnings and errors when building GTK using C++ and --use-union-type.
author malcolmp
date Sun, 02 May 2004 04:07:01 +0000
parents 7fdde2d3ae5f
children 0bcc1e4dfd91
line wrap: on
line diff
--- a/src/sysdll.c	Sat May 01 21:50:40 2004 +0000
+++ b/src/sysdll.c	Sun May 02 04:07:01 2004 +0000
@@ -362,7 +362,7 @@
 static NSSymbol
 search_linked_libs(const struct mach_header * mh, const char *symbol)
 {
-  int n;
+  unsigned long n;
   NSSymbol nssym = 0;
 
   struct load_command *lc =
@@ -407,7 +407,7 @@
     {
       /* NOTE: This assumes that this function is included in the main program
 	 and not in a shared library. */
-      const struct mach_header* my_mh = image_for_address(&dll_function);
+      const struct mach_header* my_mh = image_for_address((void*) &dll_function);
 
       if (NSIsSymbolNameDefinedInImage(my_mh, n))
 	{