closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)

This commit is contained in:
Andy Lester 2020-02-13 22:42:56 -06:00 committed by GitHub
parent a9edf44a2d
commit 7386a70746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -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[] =
{

View file

@ -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 {