@@ -1478,7 +1478,7 @@ PyUnknownEncodingHandler(void *encodingHandlerData,
14781478
14791479
14801480static PyObject *
1481- newxmlparseobject (char * encoding , char * namespace_separator , PyObject * intern )
1481+ newxmlparseobject (const char * encoding , const char * namespace_separator , PyObject * intern )
14821482{
14831483 int i ;
14841484 xmlparseobject * self ;
@@ -1932,8 +1932,7 @@ pyexpat_ParserCreate_impl(PyModuleDef *module, const char *encoding, const char
19321932 return NULL ;
19331933 }
19341934
1935- result = newxmlparseobject ((char * )encoding , (char * )namespace_separator ,
1936- intern );
1935+ result = newxmlparseobject (encoding , namespace_separator , intern );
19371936 if (intern_decref ) {
19381937 Py_DECREF (intern );
19391938 }
@@ -2074,7 +2073,7 @@ MODULE_INITFUNC(void)
20742073 PyModule_AddObject (m , "XMLParserType" , (PyObject * ) & Xmlparsetype );
20752074
20762075 PyModule_AddStringConstant (m , "EXPAT_VERSION" ,
2077- ( char * ) XML_ExpatVersion ());
2076+ XML_ExpatVersion ());
20782077 {
20792078 XML_Expat_Version info = XML_ExpatVersionInfo ();
20802079 PyModule_AddObject (m , "version_info" ,
@@ -2154,7 +2153,7 @@ MODULE_INITFUNC(void)
21542153
21552154#define MYCONST (name ) \
21562155 if (PyModule_AddStringConstant(errors_module, #name, \
2157- (char *) XML_ErrorString(name)) < 0) \
2156+ XML_ErrorString(name)) < 0) \
21582157 return NULL; \
21592158 tmpnum = PyLong_FromLong(name); \
21602159 if (tmpnum == NULL) return NULL; \
0 commit comments