diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 18:01:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 18:01:53 (GMT) |
commit | ef1585eb9a488ae8ce3ff057f43a7048b941cc1c (patch) | |
tree | fbbdc44ba78d84a31d5fc0bf1679870ec4f32f77 /Modules/pyexpat.c | |
parent | 2d06e8445587d9b4d0bf79bdb08ab4743b780249 (diff) | |
download | cpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.zip cpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.tar.gz cpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.tar.bz2 |
Issue #25923: Added more const qualifiers to signatures of static and private functions.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index b45e3da..9267c69 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -91,7 +91,7 @@ static struct HandlerInfo handler_info[64]; * false on an exception. */ static int -set_error_attr(PyObject *err, char *name, int value) +set_error_attr(PyObject *err, const char *name, int value) { PyObject *v = PyLong_FromLong(value); @@ -218,7 +218,7 @@ flag_error(xmlparseobject *self) } static PyObject* -call_with_frame(char *funcname, int lineno, PyObject* func, PyObject* args, +call_with_frame(const char *funcname, int lineno, PyObject* func, PyObject* args, xmlparseobject *self) { PyObject *res; @@ -766,7 +766,7 @@ readinst(char *buf, int buf_size, PyObject *meth) { PyObject *str; Py_ssize_t len; - char *ptr; + const char *ptr; str = PyObject_CallFunction(meth, "n", buf_size); if (str == NULL) |