mirror of
https://github.com/python/cpython.git
synced 2025-09-05 00:11:10 +00:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
parent
e184cfd7bf
commit
e2f92de6a9
23 changed files with 46 additions and 41 deletions
|
@ -1942,7 +1942,7 @@ builtin_input_impl(PyObject *module, PyObject *prompt)
|
|||
/* If we're interactive, use (GNU) readline */
|
||||
if (tty) {
|
||||
PyObject *po = NULL;
|
||||
char *promptstr;
|
||||
const char *promptstr;
|
||||
char *s = NULL;
|
||||
PyObject *stdin_encoding = NULL, *stdin_errors = NULL;
|
||||
PyObject *stdout_encoding = NULL, *stdout_errors = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue