Fix two issues introduced by issue #71031 by changing the signature of

PyImport_AppendInittab() to take a const char *.
This commit is contained in:
Brett Cannon 2009-04-02 03:34:53 +00:00
parent 345b2fe21e
commit 238cedcd63
2 changed files with 2 additions and 2 deletions

View file

@ -3382,7 +3382,7 @@ PyImport_AppendInittab(const char *name, void (*initfunc)(void))
memset(newtab, '\0', sizeof newtab);
newtab[0].name = name;
newtab[0].name = (char *)name;
newtab[0].initfunc = initfunc;
return PyImport_ExtendInittab(newtab);