s4-modules: get rid of the remaining static prototypes for modules
[sfrench/samba-autobuild/.git] / source4 / param / share.c
index 13d591ec1b46400b52c0f67edcfd56bdc84e35df..477ced7167a866bdeabf4e6f5e1b95da0dd8b36d 100644 (file)
@@ -146,8 +146,8 @@ NTSTATUS share_get_context_by_name(TALLOC_CTX *mem_ctx, const char *backend_name
 */
 NTSTATUS share_init(void)
 {
-       extern NTSTATUS share_ldb_init(void);
-       extern NTSTATUS share_classic_init(void);
+#define _MODULE_PROTO(init) extern NTSTATUS init(void);
+       STATIC_share_MODULES_PROTO;
        init_module_fn static_init[] = { STATIC_share_MODULES };
 
        run_init_functions(static_init);