]> 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:32:02 +0000 (21:32 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 6 Sep 2001 21:32:02 +0000 (21:32 +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 90e90c157ddcdea88c5de295f9ffe68b8cf9278e..42c4a1f4107339e708e16b4ae4ea9594d90cdb15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +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.
+
 2001-09-03  Gary V. Vaughan  <gary@gnu.org>
 
        * demo/Makefile.am (helldl):  Automake 1.4 can't find the target
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;
       }
     }