summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorPaul Green <paulg@samba.org>2006-04-26 15:41:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:31 -0500
commit31693197bee0d71e83418c0fb72685fd848e358f (patch)
tree86018f692df7a1911cb920816294b14e17d46a7a /source3/auth
parentf93da6d684312994a10827b36de7a72c7288ed7e (diff)
downloadsamba-31693197bee0d71e83418c0fb72685fd848e358f.tar.gz
samba-31693197bee0d71e83418c0fb72685fd848e358f.tar.bz2
samba-31693197bee0d71e83418c0fb72685fd848e358f.zip
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)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c2
-rw-r--r--source3/auth/auth_script.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 5329e736ff..139ba5482b 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 1bc33ec59e..05bae44865 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