summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-29 22:16:15 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-29 22:16:15 +0200
commit8e9d7e84f6d4a0cdc4ed6d1a8a20c1fc88cefb76 (patch)
tree8cbb51b2a6e10d020f8cad747d20f896e4ec9961 /source4/lib
parent657045ca9aa4abe11088127a05d697e5ae99a5c9 (diff)
downloadsamba-8e9d7e84f6d4a0cdc4ed6d1a8a20c1fc88cefb76.tar.gz
samba-8e9d7e84f6d4a0cdc4ed6d1a8a20c1fc88cefb76.tar.bz2
samba-8e9d7e84f6d4a0cdc4ed6d1a8a20c1fc88cefb76.zip
ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym"
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 21225acd3f..6e92fc510d 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -318,8 +318,7 @@ static void *ldb_dso_load_symbol(struct ldb_context *ldb, const char *name,
return NULL;
}
- sym = (int (*)(void))dlsym(handle, symbol);
-
+ sym = dlsym(handle, symbol);
if (sym == NULL) {
ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol `%s' found in %s: %s", symbol, path, dlerror());
return NULL;