diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 20:01:53 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 20:01:53 +0200 |
commit | ef1585eb9a488ae8ce3ff057f43a7048b941cc1c (patch) | |
tree | fbbdc44ba78d84a31d5fc0bf1679870ec4f32f77 /Python/symtable.c | |
parent | 2d06e8445587d9b4d0bf79bdb08ab4743b780249 (diff) | |
download | cpython-git-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.tar.gz |
Issue #25923: Added more const qualifiers to signatures of static and private functions.
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 8431d514f6..806364ad07 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -160,7 +160,7 @@ PyTypeObject PySTEntry_Type = { }; static int symtable_analyze(struct symtable *st); -static int symtable_warn(struct symtable *st, char *msg, int lineno); +static int symtable_warn(struct symtable *st, const char *msg, int lineno); static int symtable_enter_block(struct symtable *st, identifier name, _Py_block_ty block, void *ast, int lineno, int col_offset); @@ -903,7 +903,7 @@ symtable_analyze(struct symtable *st) static int -symtable_warn(struct symtable *st, char *msg, int lineno) +symtable_warn(struct symtable *st, const char *msg, int lineno) { PyObject *message = PyUnicode_FromString(msg); if (message == NULL) |