pidgin/pidgin

1bd209125a00
Parents 3d8ff8c57dd3
Children 220ad1d4e5f1
Explicitly cast libxml error handler function in xmlnode

This was missed in /r/3016 and was causing build failures in Fedora Rawhide.

Testing Done:
Ran the fedora-rawhide convey plan and verified the warning was gone and the build was successful.

Reviewed at https://reviews.imfreedom.org/r/3018/
--- a/libpurple/xmlnode.c Mon Mar 11 04:33:20 2024 -0500
+++ b/libpurple/xmlnode.c Mon Mar 11 21:22:20 2024 -0500
@@ -743,7 +743,7 @@
}
static void
-purple_xmlnode_parser_structural_error_libxml(void *user_data, xmlErrorPtr error)
+purple_xmlnode_parser_structural_error_libxml(void *user_data, const xmlErrorPtr error)
{
struct _xmlnode_parser_data *xpd = user_data;
@@ -797,7 +797,7 @@
NULL, /* _private */
purple_xmlnode_parser_element_start_libxml, /* startElementNs */
purple_xmlnode_parser_element_end_libxml, /* endElementNs */
- purple_xmlnode_parser_structural_error_libxml, /* serror */
+ (xmlStructuredErrorFunc)purple_xmlnode_parser_structural_error_libxml, /* serror */
};
PurpleXmlNode *