From 20b39b27d96b7c068f364ea79584feaa70fd15b6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 28 Sep 2014 11:27:24 +0300 Subject: Removed redundant casts to `char *`. Corresponding functions now accept `const char *` (issue #1772673). --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/import.c') 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); -- cgit v1.2.1