changeset 6806:85daebe9b719

[gaim-migrate @ 7346] fix a compiler warning committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 10 Sep 2003 16:46:01 +0000
parents 4fc650abb2dd
children ff477c28df7b
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Wed Sep 10 15:39:00 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Wed Sep 10 16:46:01 2003 +0000
@@ -3466,6 +3466,10 @@
 	return ret;
 }
 
+static void jabber_rereq_auth(GaimConnection *gc, const char *who) {
+	jabber_add_buddy(gc, who, NULL);
+}
+
 static GList *jabber_buddy_menu(GaimConnection *gc, const char *who) {
 	GList *m = NULL;
 	struct proto_buddy_menu *pbm;
@@ -3512,7 +3516,7 @@
 				!(jbd->subscription & JABBER_SUB_TO)) {
 			pbm = g_new0(struct proto_buddy_menu, 1);
 			pbm->label = _("Re-request authorization");
-			pbm->callback = jabber_add_buddy;
+			pbm->callback = jabber_rereq_auth;
 			pbm->gc = gc;
 			m = g_list_append(m, pbm);
 		}