summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-21 15:03:18 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-21 15:03:18 (GMT)
commit0e0ee598fccac4fec66e2673a97770c286f0a1d7 (patch)
treeca1f14050f3b30bc9832650184dcf5054dc852da /Modules/readline.c
parent2a7ff35a07dc61bf55e383db69682d58fcd606b3 (diff)
downloadcpython-0e0ee598fccac4fec66e2673a97770c286f0a1d7.zip
cpython-0e0ee598fccac4fec66e2673a97770c286f0a1d7.tar.gz
cpython-0e0ee598fccac4fec66e2673a97770c286f0a1d7.tar.bz2
#544265, Remove warnings for passing const to free()
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 44adf22..2d75ace 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -270,7 +270,7 @@ set_completer_delims(PyObject *self, PyObject *args)
if(!PyArg_ParseTuple(args, "s:set_completer_delims", &break_chars)) {
return NULL;
}
- free(rl_completer_word_break_characters);
+ free((void*)rl_completer_word_break_characters);
rl_completer_word_break_characters = strdup(break_chars);
Py_INCREF(Py_None);
return Py_None;