summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-28 11:27:24 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-28 11:27:24 +0300
commit20b39b27d96b7c068f364ea79584feaa70fd15b6 (patch)
tree8a37818cb0163a3f5cab0e04d36223cdc190e0f5 /Python
parent131caba074ae6d72dd795ca9a61f17c45c1a3349 (diff)
downloadcpython-git-20b39b27d96b7c068f364ea79584feaa70fd15b6.tar.gz
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 317bdf7653..c3b9e12572 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2064,7 +2064,7 @@ PyImport_AppendInittab(const char *name, PyObject* (*initfunc)(void))
memset(newtab, '\0', sizeof newtab);
- newtab[0].name = (char *)name;
+ newtab[0].name = name;
newtab[0].initfunc = initfunc;
return PyImport_ExtendInittab(newtab);