summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-06 18:03:22 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-08 10:39:05 +0000
commit9e5ca72afbe74d88a1da33b6957b0914262f106c (patch)
treefc9ae5e6cabcb832d9ad2f53529827800ab36a75 /source4
parentf6572e5ffc62ac41d3a180e0636129b40980f9dd (diff)
downloadsamba-9e5ca72afbe74d88a1da33b6957b0914262f106c.tar.gz
samba-9e5ca72afbe74d88a1da33b6957b0914262f106c.tar.bz2
samba-9e5ca72afbe74d88a1da33b6957b0914262f106c.zip
ldb:pyldb.c - fix some "Py_ssize_t" output warnings
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/pyldb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index e509172146..794708b2e3 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -1721,7 +1721,7 @@ struct ldb_message_element *PyObject_AsMessageElement(TALLOC_CTX *mem_ctx,
PyObject *obj = PySequence_GetItem(set_obj, i);
if (!PyString_Check(obj)) {
PyErr_Format(PyExc_TypeError,
- "Expected string as element %d in list", i);
+ "Expected string as element %zd in list", i);
talloc_free(me);
return NULL;
}
@@ -1881,8 +1881,7 @@ static PyObject *py_ldb_msg_element_new(PyTypeObject *type, PyObject *args, PyOb
PyObject *item = PySequence_GetItem(py_elements, i);
if (!PyString_Check(item)) {
PyErr_Format(PyExc_TypeError,
- "Expected string as element %d in list",
- i);
+ "Expected string as element %zd in list", i);
talloc_free(mem_ctx);
return NULL;
}