From: Ralf Wildenhues Date: Thu, 30 Sep 2004 21:56:13 +0000 (+0000) Subject: * libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c X-Git-Tag: release-1-9d~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82860858031e80c786a42dd208bbf6d4e35ef8db;p=thirdparty%2Flibtool.git * libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c (tryall_dlopen, lt_dlhandle_next): Show usage of function pointers. --- diff --git a/ChangeLog b/ChangeLog index 5b342e900..47fb87ee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-09-30 Ralf Wildenhues + * 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). diff --git a/libltdl/lt_dlloader.c b/libltdl/lt_dlloader.c index 6dff74ba4..2738a3705 100644 --- a/libltdl/lt_dlloader.c +++ b/libltdl/lt_dlloader.c @@ -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 diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index f0f006827..8600b1006 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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; }