source4/param: Fix prototypes for all functions.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 18 Mar 2011 23:44:36 +0000 (00:44 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 19 Mar 2011 02:20:05 +0000 (03:20 +0100)
source4/param/pyparam.c
source4/param/pyparam_util.c
source4/param/share_classic.c
source4/param/share_ldb.c

index bf4d1d0cbc466f015b253e5bd7f2a6bdaed31180..a248215fd9373e8bf33491e958844f3e85e4e433 100644 (file)
@@ -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);
 }
index 5781cb8ea8a34cceb9c10578d62d414d4b2933ff..528c007624d68faf2025473ef6f2a2a7db92bd25 100644 (file)
@@ -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"
 
index fcfe54864953b781412a1168a64f9edaa1bc78d2..3d5bef91e1784ef572da402fed0c49435608f357 100644 (file)
@@ -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,
index 28e145d7db429bee8f15ea5457bbf242bb6114a3..c4ab319398c90624d03c2d8b7fba76f22d444439 100644 (file)
@@ -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,