]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (shl_close): shl_t was correct here...
authorJohn David Anglin <dave.anglin@nrc.ca>
Mon, 12 Apr 1999 19:02:18 +0000 (19:02 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 12 Apr 1999 19:02:18 +0000 (19:02 +0000)
(shl_sym): ... but we have to pass the handle by reference here.

ChangeLog
libltdl/ltdl.c

index 3a34b29c660c8da419ac2319a204f456f4084772..8528de85815f590a8ce073d0443ae0b491d3b26b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-12  John David Anglin  <dave.anglin@nrc.ca>
+
+       * libltdl/ltdl.c (shl_close): shl_t was correct here...
+       (shl_sym): ... but we have to pass the handle by reference here.
+
 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * doc/libtool.texi (Invoking ltconfig): Document environment
index 00e94450e6fbaf6eeb9f3a107364c15f64b0a162..6b504fcd8f1d0089b681ba9db8d389e49d156722 100644 (file)
@@ -392,7 +392,7 @@ static int
 shl_close (handle)
        lt_dlhandle handle;
 {
-       if (shl_unload((shl_t*) (handle->handle)) != 0) {
+       if (shl_unload((shl_t) (handle->handle)) != 0) {
                last_error = cannot_close_error;
                return 1;
        }
@@ -406,7 +406,7 @@ shl_sym (handle, symbol)
 {
        lt_ptr_t address;
 
-       if (handle->handle && shl_findsym((shl_t*) (handle->handle),
+       if (handle->handle && shl_findsym((shl_t*) &(handle->handle),
            symbol, TYPE_UNDEFINED, &address) == 0)
                if (address)
                        return address;