]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
From Michael Pruett <mpruett@engr.sgi.com>:
authorGary V. Vaughan <gary@gnu.org>
Thu, 6 Sep 2001 21:23:59 +0000 (21:23 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 6 Sep 2001 21:23:59 +0000 (21:23 +0000)
* libltdl/ltdl.c (find_module): `0' valued arguments to
tryall_dlopen_module() must be explicitly cast to avoid compiler
warnings on some environments.

ChangeLog
libltdl/ltdl.c

index 7737c26775c373e7071ad8d27437b75d8e8fcb0c..7260815bb9e93c801ab1dab7b3c7dbd3ac6d591c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2001-09-06  Gary V. Vaughan  <gary@gnu.org>
 
+       From Michael Pruett <mpruett@engr.sgi.com>:
+       * libltdl/ltdl.c (find_module): `0' valued arguments to
+       tryall_dlopen_module() must be explicitly cast to avoid compiler
+       warnings on some environments.
+
        From Daniel Johnson <danielj7@mac.com>:
        * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [darwin*]: Move from GNU
        ld section to non-GNU ld section.
index 98851355587e3806011de4671305d53e969af337..e6830c4b6722b747dc984f1e93c6b63e4ad137a1 100644 (file)
@@ -1969,7 +1969,8 @@ tryall_dlopen_module (handle, prefix, dirname, dlname)
      shuffled.  Otherwise, attempt to open FILENAME as a module.  */
   if (prefix)
     {
-      error += tryall_dlopen_module (handle, 0, prefix, filename);
+      error += tryall_dlopen_module (handle,
+                                    (const char *) 0, prefix, filename);
     }
   else if (tryall_dlopen (handle, filename) != 0)
     {
@@ -2003,7 +2004,8 @@ find_module (handle, dir, libdir, dlname, old_name, installed)
       /* try to open the installed module */
       if (installed && libdir)
        {
-         if (tryall_dlopen_module (handle, 0, libdir, dlname) == 0)
+         if (tryall_dlopen_module (handle,
+                                   (const char *) 0, libdir, dlname) == 0)
            return 0;
        }
 
@@ -2016,7 +2018,8 @@ find_module (handle, dir, libdir, dlname, old_name, installed)
 
       /* maybe it was moved to another directory */
       {
-         if (tryall_dlopen_module (handle, 0, dir, dlname) == 0)
+         if (tryall_dlopen_module (handle,
+                                   (const char *) 0, dir, dlname) == 0)
            return 0;
       }
     }