summaryrefslogtreecommitdiff
path: root/source4/auth/credentials
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-04-23 01:21:47 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-02 18:05:41 +0200
commit6ace18904d638f1fb49c31041ba23353d97b40cb (patch)
tree5f9d99d9762fe435355dca79f430166b666a9060 /source4/auth/credentials
parentfe2b04b4bba6585ee5377d44b8e2627d32d404c4 (diff)
downloadsamba-6ace18904d638f1fb49c31041ba23353d97b40cb.tar.gz
samba-6ace18904d638f1fb49c31041ba23353d97b40cb.tar.bz2
samba-6ace18904d638f1fb49c31041ba23353d97b40cb.zip
Fix more unresolved symbols.
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r--source4/auth/credentials/pycredentials.c9
-rw-r--r--source4/auth/credentials/pycredentials.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c
index 3eacf9ada1..de5cc87194 100644
--- a/source4/auth/credentials/pycredentials.c
+++ b/source4/auth/credentials/pycredentials.c
@@ -29,15 +29,6 @@
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
-struct cli_credentials *cli_credentials_from_py_object(PyObject *py_obj)
-{
- if (py_obj == Py_None) {
- return cli_credentials_init_anon(NULL);
- }
-
- return PyCredentials_AsCliCredentials(py_obj);
-}
-
static PyObject *PyString_FromStringOrNULL(const char *str)
{
if (str == NULL)
diff --git a/source4/auth/credentials/pycredentials.h b/source4/auth/credentials/pycredentials.h
index f2e15fad61..1889248f05 100644
--- a/source4/auth/credentials/pycredentials.h
+++ b/source4/auth/credentials/pycredentials.h
@@ -23,8 +23,8 @@
#include "pytalloc.h"
PyAPI_DATA(PyTypeObject) PyCredentials;
-struct cli_credentials *cli_credentials_from_py_object(PyObject *py_obj);
#define PyCredentials_Check(py_obj) PyObject_TypeCheck(py_obj, &PyCredentials)
#define PyCredentials_AsCliCredentials(py_obj) py_talloc_get_type(py_obj, struct cli_credentials)
+#define cli_credentials_from_py_object(py_obj) (py_obj == Py_None)?cli_credentials_init_anon(NULL):PyCredentials_AsCliCredentials(py_obj)
#endif /* _PYCREDENTIALS_H_ */