From 31693197bee0d71e83418c0fb72685fd848e358f Mon Sep 17 00:00:00 2001 From: Paul Green Date: Wed, 26 Apr 2006 15:41:25 +0000 Subject: r15283: Oh yeah. The build farm doesn't do much with head. OK, here is the patch to SAMBA_3_0 to declare prototypes for the initialization functions. These are the same changes I just made to head. --paulg (This used to be commit 17774387ad879b6a72dd1cf406326318add31b04) --- source3/auth/auth.c | 2 ++ source3/auth/auth_script.c | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth.c b/source3/auth/auth.c index 5329e736ff1..139ba5482b7 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -23,6 +23,8 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_AUTH +static_decl_auth; + static struct auth_init_function_entry *backends = NULL; static struct auth_init_function_entry *auth_find_backend_entry(const char *name); diff --git a/source3/auth/auth_script.c b/source3/auth/auth_script.c index 1bc33ec59e7..05bae44865f 100644 --- a/source3/auth/auth_script.c +++ b/source3/auth/auth_script.c @@ -140,16 +140,14 @@ static NTSTATUS auth_init_script(struct auth_context *auth_context, const char * return NT_STATUS_OK; } -#if 0 /* Define this to build static. */ NTSTATUS auth_script_init(void) { return smb_register_auth(AUTH_INTERFACE_VERSION, "script", auth_init_script); } -#else + /* Define this to build shared. */ NTSTATUS init_module(void) { return smb_register_auth(AUTH_INTERFACE_VERSION, "script", auth_init_script); } -#endif -- cgit