From 42eb3ab54d2935a27fd883ca16c0dd9aacd71d92 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 19 Mar 2011 00:44:36 +0100 Subject: source4/param: Fix prototypes for all functions. --- source4/param/pyparam.c | 4 +++- source4/param/pyparam_util.c | 1 + source4/param/share_classic.c | 2 ++ source4/param/share_ldb.c | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'source4') 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 #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, -- cgit