diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-08-23 00:46:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:33 -0500 |
commit | 99309fac5c924ef467e7518a2deb521bf34ffa72 (patch) | |
tree | d9561bb5ddd09550a67dfe0eceb8d3eb5e9154b1 /source4/lib/ldb/common | |
parent | c09f6050f719e48cdd18fc405a21d74711026235 (diff) | |
download | samba-99309fac5c924ef467e7518a2deb521bf34ffa72.tar.gz samba-99309fac5c924ef467e7518a2deb521bf34ffa72.tar.bz2 samba-99309fac5c924ef467e7518a2deb521bf34ffa72.zip |
r17730: cast dlsym result to try to avoid a compiler crash on hpux
(This used to be commit 217cff9f00e350b769e40ff1d71ebbd5696c2938)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index e863a2beb5..cfb84e446f 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()); |