summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-03-19 00:44:36 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-03-19 03:20:05 +0100
commit42eb3ab54d2935a27fd883ca16c0dd9aacd71d92 (patch)
treecf38b7fece341cf66d9d69fd37bc95484b4f6aa1 /source4/param
parent557f830c4fc7e6b0fd0d652b80b724281faacb0c (diff)
downloadsamba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.tar.gz
samba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.tar.bz2
samba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.zip
source4/param: Fix prototypes for all functions.
Diffstat (limited to 'source4/param')
-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,