libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pointer conversion errors


From: Ralf Wildenhues
Subject: pointer conversion errors
Date: Tue, 1 Nov 2005 07:16:45 +0100
User-agent: Mutt/1.5.9i

I'm not sure whether I need to ask for approval for this patch..

Anyway, I'll apply this to branch-1-5 and HEAD unless someone disagrees.
Without it, IBM compilers barf over this in picky mode.  I believe it
even be necessary as per C standard.

Sorry for the delay.

Cheers,
Ralf

2005-11-01  Tom Kacvinsky  <address@hidden>  (tiny change)

        * libltdl/ltdl.c (lt_dlforeachfile): Cast function to data
        pointers.

Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.174.2.20
diff -u -r1.174.2.20 ltdl.c
--- libltdl/ltdl.c      13 Oct 2005 04:48:50 -0000      1.174.2.20
+++ libltdl/ltdl.c      31 Oct 2005 18:44:21 -0000
@@ -3756,31 +3756,31 @@
       /* If a specific path was passed, search only the directories
         listed in it.  */
       is_done = foreach_dirinpath (search_path, 0,
-                                  foreachfile_callback, func, data);
+                                  foreachfile_callback, (void *)func, data);
     }
   else
     {
       /* Otherwise search the default paths.  */
       is_done = foreach_dirinpath (user_search_path, 0,
-                                  foreachfile_callback, func, data);
+                                  foreachfile_callback, (void *)func, data);
       if (!is_done)
        {
          is_done = foreach_dirinpath (getenv("LTDL_LIBRARY_PATH"), 0,
-                                      foreachfile_callback, func, data);
+                                      foreachfile_callback, (void *)func, 
data);
        }
 
 #ifdef LTDL_SHLIBPATH_VAR
       if (!is_done)
        {
          is_done = foreach_dirinpath (getenv(LTDL_SHLIBPATH_VAR), 0,
-                                      foreachfile_callback, func, data);
+                                      foreachfile_callback, (void *)func, 
data);
        }
 #endif
 #ifdef LTDL_SYSSEARCHPATH
       if (!is_done)
        {
          is_done = foreach_dirinpath (getenv(LTDL_SYSSEARCHPATH), 0,
-                                      foreachfile_callback, func, data);
+                                      foreachfile_callback, (void *)func, 
data);
        }
 #endif
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]