summaryrefslogtreecommitdiff
path: root/lib/util/modules.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 22:25:43 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-10-06 07:18:07 +0200
commit355b5e3a831415d9bef97de4b2d83e353de4ab0f (patch)
tree5fceb57b6e7f1f7242030ae308927a4c5a7e2f5f /lib/util/modules.c
parenta718b5a4f1ebfb63aec2f43b654d8e97f099fe85 (diff)
downloadsamba-355b5e3a831415d9bef97de4b2d83e353de4ab0f.tar.gz
samba-355b5e3a831415d9bef97de4b2d83e353de4ab0f.tar.bz2
samba-355b5e3a831415d9bef97de4b2d83e353de4ab0f.zip
modules: standardise on samba_init_module as the hook symbol to resolve
Diffstat (limited to 'lib/util/modules.c')
-rw-r--r--lib/util/modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/modules.c b/lib/util/modules.c
index 620611ff17..2c4622510b 100644
--- a/lib/util/modules.c
+++ b/lib/util/modules.c
@@ -156,14 +156,14 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
return NT_STATUS_UNSUCCESSFUL;
}
- init = (init_module_fn)dlsym(handle, "init_samba_module");
+ init = (init_module_fn)dlsym(handle, SAMBA_INIT_MODULE);
/* we must check dlerror() to determine if it worked, because
dlsym() can validly return NULL */
error = dlerror();
if (error) {
- DEBUG(0, ("Error trying to resolve symbol 'init_samba_module' "
- "in %s: %s\n", module_name, error));
+ DEBUG(0, ("Error trying to resolve symbol '" SAMBA_INIT_MODULE
+ "' in %s: %s\n", module_name, error));
dlclose(handle);
return NT_STATUS_UNSUCCESSFUL;
}