summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-13 09:06:38 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-13 16:01:40 +0200
commit59b1078ec5a074bb812546329a12ea3941ab11ef (patch)
tree777f260592c789385d6c1ca5eca649ee9fc58e22 /source4
parent84c901a619ad4b20c36b84c435fb869e8374bd8a (diff)
downloadsamba-59b1078ec5a074bb812546329a12ea3941ab11ef.tar.gz
samba-59b1078ec5a074bb812546329a12ea3941ab11ef.tar.bz2
samba-59b1078ec5a074bb812546329a12ea3941ab11ef.zip
s4:librpc/rpc: make PyErr_SetDCERPCStatus() static
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/pyrpc.c4
-rw-r--r--source4/librpc/rpc/pyrpc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 9a6aa0d45a..04565f2495 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -26,6 +26,8 @@
#include "param/pyparam.h"
#include "auth/credentials/pycredentials.h"
+static void PyErr_SetDCERPCStatus(struct dcerpc_pipe *p, NTSTATUS status);
+
static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface,
const struct PyNdrRpcMethodDef *md,
PyObject *args, PyObject *kwargs)
@@ -203,7 +205,7 @@ static PyMemberDef dcerpc_interface_members[] = {
{ NULL }
};
-void PyErr_SetDCERPCStatus(struct dcerpc_pipe *p, NTSTATUS status)
+static void PyErr_SetDCERPCStatus(struct dcerpc_pipe *p, NTSTATUS status)
{
if (p != NULL && NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
const char *errstr = dcerpc_errstr(NULL, p->last_fault_code);
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h
index 0cc70e81e3..9d8822c13d 100644
--- a/source4/librpc/rpc/pyrpc.h
+++ b/source4/librpc/rpc/pyrpc.h
@@ -53,8 +53,6 @@ PyAPI_DATA(PyTypeObject) dcerpc_InterfaceType;
#define PyErr_SetNdrError(err) \
PyErr_SetObject(PyExc_RuntimeError, PyErr_FromNdrError(err))
-void PyErr_SetDCERPCStatus(struct dcerpc_pipe *p, NTSTATUS status);
-
typedef NTSTATUS (*py_dcerpc_call_fn) (struct dcerpc_binding_handle *, TALLOC_CTX *, void *);
typedef bool (*py_data_pack_fn) (PyObject *args, PyObject *kwargs, void *r);
typedef PyObject *(*py_data_unpack_fn) (void *r);