aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-27 15:32:18 +0000
committerYang Tse <yangsita@gmail.com>2006-10-27 15:32:18 +0000
commita93695a70ea273417ad6c52323d7a7d2c47b8a2b (patch)
tree56c79cd1dbf63795de4b5b77ccbe8bef84dfec99 /lib/ldap.c
parentce935a26971ea6d6fd2726c27b5f83353eaf2a7e (diff)
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.
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
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) {