summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-04 08:31:47 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-04 08:31:47 (GMT)
commita3da7c5f8aa7592c783728b0d3067ca0b978e462 (patch)
tree65d87b286b8fb351f0473bd65de3a7c129cf127a
parentd3afe781b15e47784273bbb82da6122bf7be999e (diff)
downloadcpython-a3da7c5f8aa7592c783728b0d3067ca0b978e462.zip
cpython-a3da7c5f8aa7592c783728b0d3067ca0b978e462.tar.gz
cpython-a3da7c5f8aa7592c783728b0d3067ca0b978e462.tar.bz2
make char* const
readline() takes a const char* and the other readline_until_enter_or_signal() implementation already has const char*.
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index f255a87..43e25bc 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -1118,7 +1118,7 @@ onintr(int sig)
static char *
-readline_until_enter_or_signal(char *prompt, int *signal)
+readline_until_enter_or_signal(const char *prompt, int *signal)
{
PyOS_sighandler_t old_inthandler;
char *p;