diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/modules.c | 6 | ||||
-rw-r--r-- | lib/util/samba_modules.h | 2 |
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 |