modules: standardise on samba_init_module as the hook symbol to resolve
[amitay/samba.git] / lib / util / modules.c
index 620611ff176d10d998ba545cb63b16d04202c8f0..2c4622510ba6818a23ac1ec79edb2c1ebd7d2ede 100644 (file)
@@ -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;
        }