diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-27 19:11:15 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-27 19:11:15 +0100 |
commit | 4c79fbfbe57d56e9795e85537f00dd023eec78d4 (patch) | |
tree | 278855524c82ff4fc5a41f5e7b12e71784202ab1 | |
parent | aa46400cb217c3869729433d2439e6ce3146ca84 (diff) | |
download | samba-4c79fbfbe57d56e9795e85537f00dd023eec78d4.tar.gz samba-4c79fbfbe57d56e9795e85537f00dd023eec78d4.tar.bz2 samba-4c79fbfbe57d56e9795e85537f00dd023eec78d4.zip |
ldb:python bindings - make the intention by Jelmer ("int" vs. "enum") more clear
-rw-r--r-- | source4/lib/ldb/pyldb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index d4a369cc9f..901d121ff6 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -1020,6 +1020,7 @@ static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwar struct ldb_dn *base; PyObject *py_ret; + /* type "int" rather than "enum" for "scope" is intentional */ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OizOO", discard_const_p(char *, kwnames), &py_base, &scope, &expr, &py_attrs, &py_controls)) @@ -1354,6 +1355,7 @@ static PyObject *py_ldb_module_search(PyLdbModuleObject *self, PyObject *args, P struct ldb_module *mod; const char * const*attrs; + /* type "int" rather than "enum" for "scope" is intentional */ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OiOO", discard_const_p(char *, kwnames), &py_base, &scope, &py_tree, &py_attrs)) |