diff libpurple/protocols/jabber/presence.c @ 19195:1ca6c4b234ab

Warning fixes in the aftermath of resiak's authorize_cb and deny_cb type fixing.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 12 Aug 2007 00:52:17 +0000
parents f29794be0163
children f821d4bffb0a 44b4e8bd759b 0ed8a2a86a1b 315151da0dc6
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Aug 12 00:00:54 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Aug 12 00:52:17 2007 +0000
@@ -193,16 +193,18 @@
 	char *who;
 };
 
-static void authorize_add_cb(struct _jabber_add_permit *jap)
+static void authorize_add_cb(gpointer data)
 {
+	struct _jabber_add_permit *jap = data;
 	jabber_presence_subscription_set(jap->gc->proto_data, jap->who,
 			"subscribed");
 	g_free(jap->who);
 	g_free(jap);
 }
 
-static void deny_add_cb(struct _jabber_add_permit *jap)
+static void deny_add_cb(gpointer data)
 {
+	struct _jabber_add_permit *jap = data;
 	jabber_presence_subscription_set(jap->gc->proto_data, jap->who,
 			"unsubscribed");
 
@@ -305,7 +307,7 @@
 		jap->js = js;
 
 		purple_account_request_authorization(purple_connection_get_account(js->gc), from, NULL, NULL, NULL, onlist,
-				G_CALLBACK(authorize_add_cb), G_CALLBACK(deny_add_cb), jap);
+				authorize_add_cb, deny_add_cb, jap);
 		jabber_id_free(jid);
 		return;
 	} else if(type && !strcmp(type, "subscribed")) {