From 8e9d7e84f6d4a0cdc4ed6d1a8a20c1fc88cefb76 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 29 Jun 2010 22:16:15 +0200 Subject: ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym" --- source4/lib/ldb/common/ldb_modules.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit