[libxslt] Fix callback signatures in Python bindings
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix callback signatures in Python bindings
- Date: Wed, 17 Jan 2018 13:01:47 +0000 (UTC)
commit 51b79bfa90c145a8ff90cc09f93da17130491ef2
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Jan 16 19:04:33 2018 +0100
Fix callback signatures in Python bindings
python/libxslt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python/libxslt.c b/python/libxslt.c
index 6db61c5..ee26d68 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]