diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-03-19 00:44:36 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-03-19 03:20:05 +0100 |
commit | 42eb3ab54d2935a27fd883ca16c0dd9aacd71d92 (patch) | |
tree | cf38b7fece341cf66d9d69fd37bc95484b4f6aa1 | |
parent | 557f830c4fc7e6b0fd0d652b80b724281faacb0c (diff) | |
download | samba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.tar.gz samba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.tar.bz2 samba-42eb3ab54d2935a27fd883ca16c0dd9aacd71d92.zip |
source4/param: Fix prototypes for all functions.
-rw-r--r-- | source4/param/pyparam.c | 4 | ||||
-rw-r--r-- | source4/param/pyparam_util.c | 1 | ||||
-rw-r--r-- | source4/param/share_classic.c | 2 | ||||
-rw-r--r-- | source4/param/share_ldb.c | 2 |
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, |