summaryrefslogtreecommitdiff
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
commit17774387ad879b6a72dd1cf406326318add31b04 (patch)
tree1d8a986a0dbe8fa57b1c9ea64d4e27b3396c8279
parent89b604285ebe77b7cc2e0d5593117c0c5dc5ed1c (diff)
downloadsamba-17774387ad879b6a72dd1cf406326318add31b04.tar.gz
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
-rw-r--r--source/aclocal.m42
-rw-r--r--source/auth/auth.c2
-rw-r--r--source/auth/auth_script.c4
-rw-r--r--source/lib/iconv.c2
-rw-r--r--source/passdb/pdb_interface.c2
-rw-r--r--source/sam/idmap.c2
-rw-r--r--source/smbd/server.c2
-rw-r--r--source/smbd/vfs.c2
8 files changed, 15 insertions, 3 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4
index 86c43f80dc0..cb8c7f00e21 100644
--- a/source/aclocal.m4
+++ b/source/aclocal.m4
@@ -57,6 +57,7 @@ AC_DEFUN(SMB_MODULE,
string_shared_modules="$string_shared_modules $1"
elif test x"$DEST" = xSTATIC; then
[init_static_modules_]translit([$4], [A-Z], [a-z])="$[init_static_modules_]translit([$4], [A-Z], [a-z]) $1_init();"
+ [decl_static_modules_]translit([$4], [A-Z], [a-z])="$[decl_static_modules_]translit([$4], [A-Z], [a-z]) extern NTSTATUS $1_init();"
string_static_modules="$string_static_modules $1"
$4_STATIC="$$4_STATIC $2"
AC_SUBST($4_STATIC)
@@ -73,6 +74,7 @@ AC_DEFUN(SMB_SUBSYSTEM,
AC_SUBST($1_STATIC)
AC_SUBST($1_MODULES)
AC_DEFINE_UNQUOTED([static_init_]translit([$1], [A-Z], [a-z]), [{$init_static_modules_]translit([$1], [A-Z], [a-z])[}], [Static init functions])
+ AC_DEFINE_UNQUOTED([static_decl_]translit([$1], [A-Z], [a-z]), [$decl_static_modules_]translit([$1], [A-Z], [a-z]), [Decl of Static init functions])
ifelse([$2], , :, [rm -f $2])
])
diff --git a/source/auth/auth.c b/source/auth/auth.c
index 5329e736ff1..139ba5482b7 100644
--- a/source/auth/auth.c
+++ b/source/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/source/auth/auth_script.c b/source/auth/auth_script.c
index 1bc33ec59e7..05bae44865f 100644
--- a/source/auth/auth_script.c
+++ b/source/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
diff --git a/source/lib/iconv.c b/source/lib/iconv.c
index f738f45efa9..c96243633fb 100644
--- a/source/lib/iconv.c
+++ b/source/lib/iconv.c
@@ -51,6 +51,8 @@
* @sa Samba Developers Guide
**/
+static_decl_charset;
+
static size_t ascii_pull(void *,const char **, size_t *, char **, size_t *);
static size_t ascii_push(void *,const char **, size_t *, char **, size_t *);
static size_t latin1_push(void *,const char **, size_t *, char **, size_t *);
diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c
index b3522e33a7f..393b60516cc 100644
--- a/source/passdb/pdb_interface.c
+++ b/source/passdb/pdb_interface.c
@@ -30,6 +30,8 @@
static struct samu *csamuser = NULL;
+static_decl_pdb;
+
static struct pdb_init_function_entry *backends = NULL;
static void lazy_initialize_passdb(void)
diff --git a/source/sam/idmap.c b/source/sam/idmap.c
index aac8b70013a..aa5b923d3dd 100644
--- a/source/sam/idmap.c
+++ b/source/sam/idmap.c
@@ -25,6 +25,8 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_IDMAP
+static_decl_idmap;
+
struct idmap_function_entry {
const char *name;
struct idmap_methods *methods;
diff --git a/source/smbd/server.c b/source/smbd/server.c
index b76ade957c2..d16579f24a8 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -22,6 +22,8 @@
#include "includes.h"
+static_decl_rpc;
+
static int am_parent = 1;
/* the last message the was processed */
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 9a6327b33b5..2c9403a0790 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -27,6 +27,8 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
+static_decl_vfs;
+
struct vfs_init_function_entry {
char *name;
vfs_op_tuple *vfs_op_tuples;