Do an explicit typecast of data pointers to function pointers

to avoid picky compiler warnings, since this is what we want!
This commit is contained in:
Yang Tse 2006-10-27 01:04:41 +00:00
parent 125830ab4b
commit 8a8d5c784c
2 changed files with 10 additions and 8 deletions

View file

@ -189,7 +189,7 @@ static void DynaClose(void)
static dynafunc DynaGetFunction(const char *name)
{
dynafunc func = (dynafunc)NULL;
dynafunc func = (void *(*)(void *))NULL;
#if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL)
if (libldap) {