summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 22:10:12 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-10-06 07:18:07 +0200
commitc8945279e72aee5511739b2ce0d7ddd5535fd1cb (patch)
treea0b2677c307dfe46ad464446ee4484e359d31bf1 /lib
parent7d33ec3dfe78723d62f4941684060baeb9c4bda6 (diff)
downloadsamba-c8945279e72aee5511739b2ce0d7ddd5535fd1cb.tar.gz
samba-c8945279e72aee5511739b2ce0d7ddd5535fd1cb.tar.xz
samba-c8945279e72aee5511739b2ce0d7ddd5535fd1cb.zip
lib/util: Remove unused module loading functions
Diffstat (limited to 'lib')
-rw-r--r--lib/util/modules.c9
-rw-r--r--lib/util/samba_modules.h7
2 files changed, 2 insertions, 14 deletions
diff --git a/lib/util/modules.c b/lib/util/modules.c
index d25cabf760..5af7fa98d0 100644
--- a/lib/util/modules.c
+++ b/lib/util/modules.c
@@ -56,7 +56,7 @@ init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path)
* Obtain list of init functions from the modules in the specified
* directory
*/
-init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
+static init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
{
DIR *dir;
struct dirent *entry;
@@ -180,11 +180,6 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
return status;
}
-NTSTATUS smb_load_module(const char *module_name)
-{
- return do_smb_load_module(module_name, false);
-}
-
/* Load all modules in list and return number of
* modules that has been successfully loaded */
int smb_load_modules(const char **modules)
@@ -193,7 +188,7 @@ int smb_load_modules(const char **modules)
int success = 0;
for(i = 0; modules[i]; i++){
- if(NT_STATUS_IS_OK(smb_load_module(modules[i]))) {
+ if(NT_STATUS_IS_OK(do_smb_load_module(modules[i], false))) {
success++;
}
}
diff --git a/lib/util/samba_modules.h b/lib/util/samba_modules.h
index 2cca622e50..df24eb7621 100644
--- a/lib/util/samba_modules.h
+++ b/lib/util/samba_modules.h
@@ -39,12 +39,6 @@ NTSTATUS init_samba_module(void);
init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path);
/**
- * Obtain list of init functions from the modules in the specified
- * directory
- */
-init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);
-
-/**
* Run the specified init functions.
*
* @return true if all functions ran successfully, false otherwise
@@ -58,7 +52,6 @@ bool run_init_functions(init_module_fn *fns);
*/
init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem);
-NTSTATUS smb_load_module(const char *module_name);
int smb_load_modules(const char **modules);
NTSTATUS smb_probe_module(const char *subsystem, const char *module);