summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-14 14:32:26 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-14 14:33:54 +0100
commit25a3eb0436ea7c060eedd6827e5fdc5efd6ab47b (patch)
tree2b52b9280c0e849a5f6de04e30c5a948cf2dbb45 /source4/libcli
parent4b2aee2cd6fd38b2eecf6a3102d001dc8a1e860e (diff)
downloadsamba-25a3eb0436ea7c060eedd6827e5fdc5efd6ab47b.tar.gz
samba-25a3eb0436ea7c060eedd6827e5fdc5efd6ab47b.tar.bz2
samba-25a3eb0436ea7c060eedd6827e5fdc5efd6ab47b.zip
swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
metze (This used to be commit d6fd98a307f83fd492ef73bf6ec281f9f11286f2)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/errors.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/util/errors.i b/source4/libcli/util/errors.i
index ede536a995..17efcbf62a 100644
--- a/source4/libcli/util/errors.i
+++ b/source4/libcli/util/errors.i
@@ -20,7 +20,7 @@
#ifdef SWIGPYTHON
%typemap(out,noblock=1) WERROR {
if (!W_ERROR_IS_OK($1)) {
- PyObject *obj = Py_BuildValue((char *)"(i,s)", $1.v, win_errstr($1));
+ PyObject *obj = Py_BuildValue((char *)"(i,s)", W_ERROR_V($1), win_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
SWIG_fail;
} else if ($result == NULL) {
@@ -30,7 +30,7 @@
%typemap(out,noblock=1) NTSTATUS {
if (NT_STATUS_IS_ERR($1)) {
- PyObject *obj = Py_BuildValue((char *)"(i,s)", $1.v, nt_errstr($1));
+ PyObject *obj = Py_BuildValue((char *)"(i,s)", NT_STATUS_V($1), nt_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
SWIG_fail;
} else if ($result == NULL) {