summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-11 13:21:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-12-11 13:21:12 (GMT)
commit32b4a1ba62abe01684cbd1486274c7a40f81d78c (patch)
tree7c927e3180677f9e3217031507025f9a0f0511f1 /Objects
parentb023381466b5dad8545191bb8ab0c37eb1a24c22 (diff)
downloadcpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.zip
cpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.tar.gz
cpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.tar.bz2
Constify char* API. Fixes #651363. 2.2 candidate.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 712ec2c..5e39dfa 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -1919,7 +1919,7 @@ PyTypeObject PyDict_Type = {
/* For backward compatibility with old dictionary interface */
PyObject *
-PyDict_GetItemString(PyObject *v, char *key)
+PyDict_GetItemString(PyObject *v, const char *key)
{
PyObject *kv, *rv;
kv = PyString_FromString(key);
@@ -1931,7 +1931,7 @@ PyDict_GetItemString(PyObject *v, char *key)
}
int
-PyDict_SetItemString(PyObject *v, char *key, PyObject *item)
+PyDict_SetItemString(PyObject *v, const char *key, PyObject *item)
{
PyObject *kv;
int err;
@@ -1945,7 +1945,7 @@ PyDict_SetItemString(PyObject *v, char *key, PyObject *item)
}
int
-PyDict_DelItemString(PyObject *v, char *key)
+PyDict_DelItemString(PyObject *v, const char *key)
{
PyObject *kv;
int err;