diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
commit | 8cbd503f52fac32926312dd3476a4580dfbe6daa (patch) | |
tree | f0bdad374debc4ebcc452222a176deec293c56fa /Python/import.c | |
parent | 9f6d459fbd1d32957566bc4ec51a988b35b6808d (diff) | |
download | cpython-8cbd503f52fac32926312dd3476a4580dfbe6daa.tar.gz |
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
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); |