From: John David Anglin Date: Mon, 12 Apr 1999 19:02:10 +0000 (+0000) Subject: * libltdl/ltdl.c (shl_close): shl_t was correct here... X-Git-Tag: release-1-3~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f942eb356adb47a71ee67267e7ec9cca786590e;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 0e2e1b459..04ef98bd3 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;