diff options
Diffstat (limited to 'python/libxslt.c')
-rw-r--r-- | python/libxslt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/libxslt.c b/python/libxslt.c index b1fb18de..ee26d689 100644 --- a/python/libxslt.c +++ b/python/libxslt.c @@ -180,7 +180,7 @@ static xmlHashTablePtr libxslt_extModuleElements = NULL; static xmlHashTablePtr libxslt_extModuleElementPreComp = NULL; static void -deallocateCallback(void *payload, xmlChar *name ATTRIBUTE_UNUSED) { +deallocateCallback(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { PyObject *function = (PyObject *) payload; #ifdef DEBUG_EXTENSIONS @@ -191,7 +191,7 @@ deallocateCallback(void *payload, xmlChar *name ATTRIBUTE_UNUSED) { } static void -deallocateClasse(void *payload, xmlChar *name ATTRIBUTE_UNUSED) { +deallocateClasse(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { PyObject *class = (PyObject *) payload; #ifdef DEBUG_EXTENSIONS @@ -1127,10 +1127,10 @@ libxslt_xsltRegisterExtensionClass(PyObject *self ATTRIBUTE_UNUSED, Py_XINCREF(pyobj_c); ret = xsltRegisterExtModuleFull(ns_uri, - (xsltExtInitFunction) libxslt_xsltPythonExtModuleCtxtInit, - (xsltExtShutdownFunction) libxslt_xsltPythonExtModuleCtxtShutdown, - (xsltStyleExtInitFunction) libxslt_xsltPythonExtModuleStyleInit, - (xsltStyleExtShutdownFunction) libxslt_xsltPythonExtModuleStyleShutdown); + libxslt_xsltPythonExtModuleCtxtInit, + libxslt_xsltPythonExtModuleCtxtShutdown, + libxslt_xsltPythonExtModuleStyleInit, + libxslt_xsltPythonExtModuleStyleShutdown); py_retval = libxml_intWrap((int) ret); if (ret < 0) { Py_XDECREF(pyobj_c); |