From 9f942eb356adb47a71ee67267e7ec9cca786590e Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 12 Apr 1999 19:02:10 +0000 Subject: [PATCH] * libltdl/ltdl.c (shl_close): shl_t was correct here... (shl_sym): ... but we have to pass the handle by reference here. --- ChangeLog | 5 +++++ libltdl/ltdl.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 2.47.3