summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-25 18:01:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-25 18:01:53 (GMT)
commitef1585eb9a488ae8ce3ff057f43a7048b941cc1c (patch)
treefbbdc44ba78d84a31d5fc0bf1679870ec4f32f77 /Parser/tokenizer.c
parent2d06e8445587d9b4d0bf79bdb08ab4743b780249 (diff)
downloadcpython-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 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 9ca3cb4..be7cf49 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -202,8 +202,8 @@ error_ret(struct tok_state *tok) /* XXX */
}
-static char *
-get_normal_name(char *s) /* for utf-8 and latin-1 */
+static const char *
+get_normal_name(const char *s) /* for utf-8 and latin-1 */
{
char buf[13];
int i;
@@ -264,7 +264,7 @@ get_coding_spec(const char *s, char **spec, Py_ssize_t size, struct tok_state *t
if (begin < t) {
char* r = new_string(begin, t - begin, tok);
- char* q;
+ const char* q;
if (!r)
return 0;
q = get_normal_name(r);