1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

lib/util: Use only init_module_fn typedef in module loading

This commit is contained in:
Andrew Bartlett 2011-09-09 22:18:42 +10:00
parent c8945279e7
commit a718b5a4f1
2 changed files with 2 additions and 3 deletions

View File

@ -136,7 +136,7 @@ init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem)
static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
{
void *handle;
init_module_function *init;
init_module_fn init;
NTSTATUS status;
const char *error;
@ -156,7 +156,7 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
return NT_STATUS_UNSUCCESSFUL;
}
init = (init_module_function *)dlsym(handle, "init_samba_module");
init = (init_module_fn)dlsym(handle, "init_samba_module");
/* we must check dlerror() to determine if it worked, because
dlsym() can validly return NULL */

View File

@ -22,7 +22,6 @@
#define _SAMBA_MODULES_H
/* Module support */
typedef NTSTATUS (init_module_function) (void);
typedef NTSTATUS (*init_module_fn) (void);
NTSTATUS init_samba_module(void);