1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

source4/param: Fix prototypes for all functions.

This commit is contained in:
Jelmer Vernooij 2011-03-19 00:44:36 +01:00
parent 557f830c4f
commit 42eb3ab54d
4 changed files with 8 additions and 1 deletions

View 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);
}

View 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"

View 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,

View 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,