diff options
author | Tim Peters <tim.peters@gmail.com> | 2005-12-24 06:03:06 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2005-12-24 06:03:06 (GMT) |
commit | c3d12ac88ced9fe7de33a8f6654eef74c7f38ace (patch) | |
tree | b126d0f24dc8db4a35e1973bf759ae00ca7d3c52 /Python/structmember.c | |
parent | dc297b4ef4d8a8eaf597b66353b9205f00668187 (diff) | |
download | cpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.zip cpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.tar.gz cpython-c3d12ac88ced9fe7de33a8f6654eef74c7f38ace.tar.bz2 |
const poisoning, spreading to fix new const warnings
in _winreg.c.
Diffstat (limited to 'Python/structmember.c')
-rw-r--r-- | Python/structmember.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/structmember.c b/Python/structmember.c index 1574c95..0a24d9d 100644 --- a/Python/structmember.c +++ b/Python/structmember.c @@ -29,7 +29,7 @@ listmembers(struct memberlist *mlist) } PyObject * -PyMember_Get(char *addr, struct memberlist *mlist, char *name) +PyMember_Get(const char *addr, struct memberlist *mlist, const char *name) { struct memberlist *l; @@ -51,7 +51,7 @@ PyMember_Get(char *addr, struct memberlist *mlist, char *name) } PyObject * -PyMember_GetOne(char *addr, PyMemberDef *l) +PyMember_GetOne(const char *addr, PyMemberDef *l) { PyObject *v; if ((l->flags & READ_RESTRICTED) && @@ -134,7 +134,7 @@ PyMember_GetOne(char *addr, PyMemberDef *l) } int -PyMember_Set(char *addr, struct memberlist *mlist, char *name, PyObject *v) +PyMember_Set(char *addr, struct memberlist *mlist, const char *name, PyObject *v) { struct memberlist *l; |