pidgin/pidgin

Silence some warning in PurpleContactManager

17 months ago, Gary Kramlich
ba714f65be70
Parents d3117aac63b3
Children 17fd3bcecaeb
Silence some warning in PurpleContactManager

Testing Done:
Compiled and verified the warnings were gone.

Reviewed at https://reviews.imfreedom.org/r/2112/
--- a/libpurple/purplecontactmanager.c Fri Dec 02 12:46:05 2022 -0600
+++ b/libpurple/purplecontactmanager.c Sun Dec 04 05:56:06 2022 -0600
@@ -46,8 +46,8 @@
purple_contact_manager_find_with_username_helper(gconstpointer a,
gconstpointer b)
{
- PurpleContactInfo *info_a = PURPLE_CONTACT_INFO(a);
- PurpleContactInfo *info_b = PURPLE_CONTACT_INFO(b);
+ PurpleContactInfo *info_a = PURPLE_CONTACT_INFO((gpointer)a);
+ PurpleContactInfo *info_b = PURPLE_CONTACT_INFO((gpointer)b);
const gchar *username_a = NULL;
const gchar *username_b = NULL;
@@ -59,8 +59,8 @@
static gboolean
purple_contact_manager_find_with_id_helper(gconstpointer a, gconstpointer b) {
- PurpleContactInfo *info_a = PURPLE_CONTACT_INFO(a);
- PurpleContactInfo *info_b = PURPLE_CONTACT_INFO(b);
+ PurpleContactInfo *info_a = PURPLE_CONTACT_INFO((gpointer)a);
+ PurpleContactInfo *info_b = PURPLE_CONTACT_INFO((gpointer)b);
const gchar *id_a = NULL;
const gchar *id_b = NULL;