summaryrefslogtreecommitdiffstats
path: root/PC/_winreg.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-24 06:03:06 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-12-24 06:03:06 (GMT)
commitc3d12ac88ced9fe7de33a8f6654eef74c7f38ace (patch)
treeb126d0f24dc8db4a35e1973bf759ae00ca7d3c52 /PC/_winreg.c
parentdc297b4ef4d8a8eaf597b66353b9205f00668187 (diff)
downloadcpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.zip
cpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.tar.gz
cpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.tar.bz2
const poisoning, spreading to fix new const warnings
in _winreg.c.
Diffstat (limited to 'PC/_winreg.c')
-rw-r--r--PC/_winreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/_winreg.c b/PC/_winreg.c
index a20b09a..34e4f68 100644
--- a/PC/_winreg.c
+++ b/PC/_winreg.c
@@ -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;