From: John David Anglin Date: Mon, 12 Apr 1999 19:02:18 +0000 (+0000) Subject: * libltdl/ltdl.c (shl_close): shl_t was correct here... X-Git-Tag: release-1-3b~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e26ad6dd756bce89909d685dcaecff3b68ec97;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (shl_close): shl_t was correct here... (shl_sym): ... but we have to pass the handle by reference here. --- diff --git a/ChangeLog b/ChangeLog index 3a34b29c6..8528de858 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-04-12 John David Anglin + + * 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 * doc/libtool.texi (Invoking ltconfig): Document environment diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 00e94450e..6b504fcd8 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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;