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:
parent
c8945279e7
commit
a718b5a4f1
@ -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 */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user