From 355b5e3a831415d9bef97de4b2d83e353de4ab0f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 9 Sep 2011 22:25:43 +1000 Subject: modules: standardise on samba_init_module as the hook symbol to resolve --- lib/util/modules.c | 6 +++--- lib/util/samba_modules.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 -- cgit