--- a/libpurple/protocols/bonjour/parser.c Thu Feb 01 22:21:42 2024 -0600
+++ b/libpurple/protocols/bonjour/parser.c Sat Feb 10 01:32:36 2024 -0600
@@ -159,7 +159,7 @@
-bonjour_parser_structured_error_handler(void *user_data, xmlErrorPtr error)
+bonjour_parser_structured_error_handler(void *user_data, const xmlError *error) BonjourXMPPConversation *bconv = user_data;
--- a/libpurple/protocols/jabber/parser.c Thu Feb 01 22:21:42 2024 -0600
+++ b/libpurple/protocols/jabber/parser.c Sat Feb 10 01:32:36 2024 -0600
@@ -181,7 +181,7 @@
-jabber_parser_structured_error_handler(void *user_data, xmlErrorPtr error)
+jabber_parser_structured_error_handler(void *user_data, const xmlError *error) JabberStream *js = user_data;
@@ -271,7 +271,7 @@
js->context = xmlCreatePushParserCtxt(&jabber_parser_libxml, js, buf, len, NULL);
xmlParseChunk(js->context, "", 0, 0);
} else if ((ret = xmlParseChunk(js->context, buf, len, 0)) != XML_ERR_OK) {
- xmlError *err = xmlCtxtGetLastError(js->context);
+ const xmlError *err = xmlCtxtGetLastError(js->context); * libxml2 uses a global setting to determine whether or not to store
* warnings. Other libraries may set this, which causes err to be