From fe9c6440a352de1d7b2d148fd4393c669927ac82 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 24 Apr 2008 10:05:12 -0600 Subject: [PATCH] Fix bug in 2008-04-21 type improvements. * libltdl/ltdl.c (load_deplibs): Fix casting bug. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ libltdl/ltdl.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e97b7150..737c5c80b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-24 Eric Blake + + Fix bug in 2008-04-21 type improvements. + * libltdl/ltdl.c (load_deplibs): Fix casting bug. + 2008-04-23 Michael Haubenwallner Use /nonexistent as destination for files not to be installed. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index c8edcb440..a89c6bb8b 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -353,7 +353,7 @@ static int tryall_dlopen (lt_dlhandle *phandle, const char *filename, lt_dladvise advise, const lt_dlvtable *vtable) { - lt_dlhandle handle = handles; + lt_dlhandle handle = handles; const char * saved_error = 0; int errors = 0; @@ -921,7 +921,7 @@ load_deplibs (lt_dlhandle handle, char *deplibs) lt_dlhandle cur = handle; int j = 0; - cur->deplibs = (lt_dlhandle) MALLOC (struct lt__handle, depcount); + cur->deplibs = MALLOC (lt_dlhandle, depcount); if (!cur->deplibs) goto cleanup_names; -- 2.47.3