]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 30 Sep 2004 21:56:13 +0000 (21:56 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 30 Sep 2004 21:56:13 +0000 (21:56 +0000)
(tryall_dlopen, lt_dlhandle_next): Show usage of function pointers.

ChangeLog
libltdl/lt_dlloader.c
libltdl/ltdl.c

index 5b342e900d7222fbda380d9c364f0cbee279fa42..47fb87ee2ef7fdd241ad1faf149496da9bb71e48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c
+       (tryall_dlopen, lt_dlhandle_next): Show usage of function pointers.
+
        * doc/libtool.texi (LT_INIT, Using libltdl)
        (Module loaders for libltdl, Multiple dependencies)
        (libtool script contents): Fix several typos (trivial change).
index 6dff74ba4f03ffd6203e09951926695b2d742b71..2738a37053aab6603ca4c09b93a03faf705153d8 100644 (file)
@@ -145,7 +145,7 @@ lt_dlloader_remove (char *name)
   /* Call the loader finalisation function.  */
   if (vtable && vtable->dlloader_exit)
     {
-      if (vtable->dlloader_exit (vtable->dlloader_data) != 0)
+      if ((*vtable->dlloader_exit) (vtable->dlloader_data) != 0)
        {
          /* If there is an exit function, and it returns non-zero
             then it must set an error, and we will not remove it
index f0f00682790e12e27a7a433be16d92542123880f..8600b1006a2210af157fdac4c52658e29019c303 100644 (file)
@@ -361,7 +361,8 @@ tryall_dlopen (lt_dlhandle *phandle, const char *filename)
     while ((loader = lt_dlloader_next (loader)))
       {
        vtable = lt_dlloader_get (loader);
-       handle->module = vtable->module_open (vtable->dlloader_data, filename);
+       handle->module = (*vtable->module_open) (vtable->dlloader_data,
+                                                filename);
 
        if (handle->module != 0)
          {
@@ -2110,7 +2111,7 @@ lt_dlhandle_next (lt_dlhandle place)
 
   /* advance until the interface check (if we have one) succeeds */
   while (handle && iterator && iterator->iface
-        && (iterator->iface (handle, iterator->id_string) != 0))
+        && ((*iterator->iface) (handle, iterator->id_string) != 0))
     {
       handle = handle->next;
     }