From 8a8d5c784c4b8f137e2ad9aa9443c4dd3fa8626d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 27 Oct 2006 01:04:41 +0000 Subject: Do an explicit typecast of data pointers to function pointers to avoid picky compiler warnings, since this is what we want! --- lib/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ldap.c') diff --git a/lib/ldap.c b/lib/ldap.c index 23af7e52b..3479bd912 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -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) { -- cgit v1.2.3