aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-27 01:04:41 +0000
committerYang Tse <yangsita@gmail.com>2006-10-27 01:04:41 +0000
commit8a8d5c784c4b8f137e2ad9aa9443c4dd3fa8626d (patch)
tree2f1e16d4614794392dae2999ba086ca628858d54 /lib/ldap.c
parent125830ab4bfa1142ea7aa0a849336b6351d4f174 (diff)
Do an explicit typecast of data pointers to function pointers
to avoid picky compiler warnings, since this is what we want!
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 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) {