summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/pyparam.c4
-rw-r--r--source4/param/pyparam_util.c1
-rw-r--r--source4/param/share_classic.c2
-rw-r--r--source4/param/share_ldb.c2
4 files changed, 8 insertions, 1 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index bf4d1d0cbc..a248215fd9 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -24,6 +24,8 @@
#include "lib/talloc/pytalloc.h"
#include "dynconfig/dynconfig.h"
+void initparam(void);
+
/* There's no Py_ssize_t in 2.4, apparently */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
typedef int Py_ssize_t;
@@ -36,7 +38,7 @@ typedef inquiry lenfunc;
extern PyTypeObject PyLoadparmContext;
extern PyTypeObject PyLoadparmService;
-PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
+static PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
{
return py_talloc_reference(&PyLoadparmService, service);
}
diff --git a/source4/param/pyparam_util.c b/source4/param/pyparam_util.c
index 5781cb8ea8..528c007624 100644
--- a/source4/param/pyparam_util.c
+++ b/source4/param/pyparam_util.c
@@ -20,6 +20,7 @@
#include <Python.h>
#include "includes.h"
#include "param/param.h"
+#include "param/pyparam.h"
#include "param/loadparm.h"
#include "lib/talloc/pytalloc.h"
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c
index fcfe548649..3d5bef91e1 100644
--- a/source4/param/share_classic.c
+++ b/source4/param/share_classic.c
@@ -23,6 +23,8 @@
#include "param/share.h"
#include "param/param.h"
+NTSTATUS share_classic_init(void);
+
static NTSTATUS sclassic_init(TALLOC_CTX *mem_ctx,
const struct share_ops *ops,
struct tevent_context *event_ctx,
diff --git a/source4/param/share_ldb.c b/source4/param/share_ldb.c
index 28e145d7db..c4ab319398 100644
--- a/source4/param/share_ldb.c
+++ b/source4/param/share_ldb.c
@@ -27,6 +27,8 @@
#include "param/share.h"
#include "param/param.h"
+NTSTATUS share_ldb_init(void);
+
static NTSTATUS sldb_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops,
struct tevent_context *ev_ctx,
struct loadparm_context *lp_ctx,