summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
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);