1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:web_server: Fix build error

source4/web_server/wsgi.c:149:8: error: assignment discards 'const'
qualifier from pointer target type [-Werror=discarded-qualifiers]
    str = PyStr_AsUTF8AndSize(item, &size);
            ^

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Dec 11 13:58:30 CET 2018 on sn-devel-144
This commit is contained in:
Andreas Schneider 2018-12-11 09:39:17 +01:00 committed by Andreas Schneider
parent 6a7a993317
commit 884eeca39e

View File

@ -143,7 +143,7 @@ static PyObject *py_error_writelines(PyObject *self, PyObject *args, PyObject *k
}
while ((item = PyIter_Next(seq))) {
char *str = NULL;
const char *str = NULL;
Py_ssize_t size = 0;
if (!IsPy3Bytes(item)) {
str = PyStr_AsUTF8AndSize(item, &size);