From a93695a70ea273417ad6c52323d7a7d2c47b8a2b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 27 Oct 2006 15:32:18 +0000 Subject: Compiler warning fix. Assigning the const value zero to a pointer to function results in a null pointer value assignment to the function pointer. Assignment of any nonzero value is what should result in a implementation compiler dependent result. Since what we want to do here is the first case, this should not trigger compiler warnings related with conversions from 'pointer to data' to 'pointer to function'. Our autobuild test suite will judge. --- 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 1c062dc44..6a5e0d6dd 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 = (void *(*)(void *))NULL; + dynafunc func = (void *(*)(void *))0; #if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL) if (libldap) { -- cgit v1.2.3