Change our module code to not use the special symbol name init_module()
authorAndrew Tridgell <tridge@samba.org>
Tue, 17 Jun 2008 03:11:29 +0000 (13:11 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 17 Jun 2008 03:11:29 +0000 (13:11 +1000)
commit1b0621068998590e7b1e9528b78744dcd2cd5909
tree97cb3aa11b031a985256effa8f9876b1e423c30e
parent649f6c0c1084828dda7d50bd2904208192de77da
Change our module code to not use the special symbol name init_module()

Current glibc libraries include a function called init_module(). If we
use the same name, then a dlsym() can find the glibc function if the
module doesn't have an initialisation function.

In ldb, none of our modules have an init_module(), so we end up calling the libc
functions with bogus arguments.
source/include/includes.h
source/lib/ldb/common/ldb.c
source/lib/ldb/common/ldb_modules.c
source/param/util.c