summaryrefslogtreecommitdiff
path: root/lib/util
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
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')
-rw-r--r--lib/util/modules.c6
-rw-r--r--lib/util/samba_modules.h2
2 files changed, 4 insertions, 4 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;
}
diff --git a/lib/util/samba_modules.h b/lib/util/samba_modules.h
index 06f92c5db1..ae7895eb12 100644
--- a/lib/util/samba_modules.h
+++ b/lib/util/samba_modules.h
@@ -24,7 +24,7 @@
/* Module support */
typedef NTSTATUS (*init_module_fn) (void);
-NTSTATUS init_samba_module(void);
+NTSTATUS samba_init_module(void);
/* this needs to be a string which is not in the C library. We
previously used "init_module", but that meant that modules which