mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
const poisoning, spreading to fix new const warnings
in _winreg.c.
This commit is contained in:
parent
dc297b4ef4
commit
c3d12ac88c
3 changed files with 8 additions and 8 deletions
|
@ -455,7 +455,7 @@ static PyNumberMethods PyHKEY_NumberMethods =
|
|||
|
||||
|
||||
/* fwd declare __getattr__ */
|
||||
static PyObject *PyHKEY_getattr(PyObject *self, char *name);
|
||||
static PyObject *PyHKEY_getattr(PyObject *self, const char *name);
|
||||
|
||||
/* The type itself */
|
||||
PyTypeObject PyHKEY_Type =
|
||||
|
@ -526,7 +526,7 @@ static struct PyMethodDef PyHKEY_methods[] = {
|
|||
};
|
||||
|
||||
/*static*/ PyObject *
|
||||
PyHKEY_getattr(PyObject *self, char *name)
|
||||
PyHKEY_getattr(PyObject *self, const char *name)
|
||||
{
|
||||
PyObject *res;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue