Skip to content

Commit

Permalink
s4:web_server: Fix build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: David Disseldorp <[email protected]>

Autobuild-User(master): Andreas Schneider <[email protected]>
Autobuild-Date(master): Tue Dec 11 13:58:30 CET 2018 on sn-devel-144
  • Loading branch information
cryptomilk committed Dec 11, 2018
1 parent 6a7a993 commit 884eeca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source4/web_server/wsgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 884eeca

Please sign in to comment.