svn commit: samba r17730 - in branches/SAMBA_4_0/source/lib/ldb/common: .

tridge at samba.org tridge at samba.org
Wed Aug 23 00:46:40 GMT 2006


Author: tridge
Date: 2006-08-23 00:46:40 +0000 (Wed, 23 Aug 2006)
New Revision: 17730

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17730

Log:

cast dlsym result to try to avoid a compiler crash on hpux

Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c	2006-08-23 00:42:33 UTC (rev 17729)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c	2006-08-23 00:46:40 UTC (rev 17730)
@@ -221,7 +221,7 @@
 		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());



More information about the samba-cvs mailing list