diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-15 05:30:54 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-18 22:28:07 +0100 |
commit | 88e460190014880d6e4a4eae063a773d9ff5a09c (patch) | |
tree | dc1b9ab8aa098c1e9f4929ca9e77d5274c1580c9 /source4 | |
parent | 72fcfedd89b3b8c41b527c4f25fdac518e20c8f2 (diff) | |
download | samba-88e460190014880d6e4a4eae063a773d9ff5a09c.tar.gz samba-88e460190014880d6e4a4eae063a773d9ff5a09c.tar.bz2 samba-88e460190014880d6e4a4eae063a773d9ff5a09c.zip |
s4-pyldb: Few miss-alignments aligned
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/pyldb.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 9fd755f590..5eb0c2d15c 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -48,8 +48,8 @@ static void PyErr_SetLdbError(PyObject *error, int ret, struct ldb_context *ldb_ return; /* Python exception should already be set, just keep that */ PyErr_SetObject(error, - Py_BuildValue(discard_const_p(char, "(i,s)"), ret, - ldb_ctx == NULL?ldb_strerror(ret):ldb_errstring(ldb_ctx))); + Py_BuildValue(discard_const_p(char, "(i,s)"), ret, + ldb_ctx == NULL?ldb_strerror(ret):ldb_errstring(ldb_ctx))); } static PyObject *PyExc_LdbError; @@ -64,8 +64,8 @@ PyAPI_DATA(PyTypeObject) PyLdbTree; static PyObject *PyLdb_FromLdbContext(struct ldb_context *ldb_ctx); static PyObject *PyObject_FromLdbValue(struct ldb_context *ldb_ctx, - struct ldb_message_element *el, - struct ldb_val *val) + struct ldb_message_element *el, + struct ldb_val *val) { struct ldb_val new_val; TALLOC_CTX *mem_ctx = talloc_new(NULL); @@ -95,8 +95,7 @@ static PyObject *PyLdbResult_FromResult(struct ldb_result *result) } ret = PyList_New(result->count); for (i = 0; i < result->count; i++) { - PyList_SetItem(ret, i, PyLdbMessage_FromMessage(result->msgs[i]) - ); + PyList_SetItem(ret, i, PyLdbMessage_FromMessage(result->msgs[i])); } return ret; } @@ -110,7 +109,7 @@ static PyObject *PyLdbResult_FromResult(struct ldb_result *result) * @return a ldb_result, or NULL if the conversion failed */ static struct ldb_result *PyLdbResult_AsResult(TALLOC_CTX *mem_ctx, - PyObject *obj) + PyObject *obj) { struct ldb_result *res; Py_ssize_t i; @@ -490,7 +489,7 @@ static PyObject *py_ldb_get_default_basedn(PyLdbObject *self) } static const char **PyList_AsStringList(TALLOC_CTX *mem_ctx, PyObject *list, - const char *paramname) + const char *paramname) { const char **ret; Py_ssize_t i; @@ -506,7 +505,7 @@ static const char **PyList_AsStringList(TALLOC_CTX *mem_ctx, PyObject *list, return NULL; } ret[i] = talloc_strndup(ret, PyString_AsString(item), - PyString_Size(item)); + PyString_Size(item)); } ret[i] = NULL; return ret; |