From 9e5ca72afbe74d88a1da33b6957b0914262f106c Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 6 Nov 2010 18:03:22 +0100 Subject: ldb:pyldb.c - fix some "Py_ssize_t" output warnings --- source4/lib/ldb/pyldb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4') 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; } -- cgit