diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/codecs.c | 2 | ||||
-rw-r--r-- | Python/errors.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index ce86cb20cc..e5bcdb09fc 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1407,7 +1407,7 @@ static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc) static int _PyCodecRegistry_Init(void) { static struct { - char *name; + const char *name; PyMethodDef def; } methods[] = { diff --git a/Python/errors.c b/Python/errors.c index f11b66e795..61dc597916 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -614,7 +614,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P #ifndef MS_WINDOWS if (i != 0) { - char *s = strerror(i); + const char *s = strerror(i); message = PyUnicode_DecodeLocale(s, "surrogateescape"); } else { |