(shl_sym): ... but we have to pass the handle by reference here.
+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
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;
}
{
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;