From 99309fac5c924ef467e7518a2deb521bf34ffa72 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Aug 2006 00:46:40 +0000 Subject: [PATCH] r17730: cast dlsym result to try to avoid a compiler crash on hpux (This used to be commit 217cff9f00e350b769e40ff1d71ebbd5696c2938) --- source4/lib/ldb/common/ldb_modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index e863a2beb5d..cfb84e446f2 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -221,7 +221,7 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name) return -1; } - init_fn = dlsym(handle, "init_module"); + init_fn = (int (*)(void))dlsym(handle, "init_module"); if (init_fn == NULL) { ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol `init_module' found in %s: %s\n", path, dlerror()); -- 2.34.1