s4:dsdb: Use const char in py_dsdb_garbage_collect_tombstones()
authorAndreas Schneider <asn@samba.org>
Mon, 12 Nov 2018 17:20:49 +0000 (18:20 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 14 Nov 2018 07:45:19 +0000 (08:45 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source4/dsdb/pydsdb.c

index 36cc80d45352759cdf9e7238fded72b2604f54e7..7bbceb35a92809bae4b69561fccfd0e2a2ae2a79 100644 (file)
@@ -1276,7 +1276,7 @@ static PyObject *py_dsdb_garbage_collect_tombstones(PyObject *self, PyObject *ar
        length = PyList_GET_SIZE(py_list_dn);
 
        for (i = 0; i < length; i++) {
-               char *part_str = PyStr_AsString(PyList_GetItem(py_list_dn, i));
+               const char *part_str = PyStr_AsString(PyList_GetItem(py_list_dn, i));
                struct ldb_dn *p;
                struct dsdb_ldb_dn_list_node *node;