/soc/2013/ankitkv/gobjectification: a09f679ac557: Fix an incompa...

Ankit Vani a at nevitus.org
Thu Jun 27 10:57:51 EDT 2013


Changeset: a09f679ac55730691d65aea31d5e44cc41cfb7dd
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-27 20:27 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/a09f679ac557

Description:

Fix an incompatible pointer conversion warning

diffstat:

 finch/gntpounce.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (29 lines):

diff --git a/finch/gntpounce.c b/finch/gntpounce.c
--- a/finch/gntpounce.c
+++ b/finch/gntpounce.c
@@ -780,7 +780,7 @@ finch_pounces_manager_hide(void)
 static void
 pounce_cb(PurplePounce *pounce, PurplePounceEvent events, void *data)
 {
-	PurpleConversation *conv;
+	PurpleIMConversation *im;
 	PurpleAccount *account;
 	PurpleBuddy *buddy;
 	const char *pouncee;
@@ -874,12 +874,12 @@ pounce_cb(PurplePounce *pounce, PurplePo
 
 		if (message != NULL)
 		{
-			conv = purple_conversations_find_im_with_account(pouncee, account);
+			im = purple_conversations_find_im_with_account(pouncee, account);
 
-			if (conv == NULL)
-				conv = purple_im_conversation_new(account, pouncee);
+			if (im == NULL)
+				im = purple_im_conversation_new(account, pouncee);
 
-			purple_conversation_write(conv, NULL, message,
+			purple_conversation_write(PURPLE_CONVERSATION(im), NULL, message,
 									PURPLE_MESSAGE_SEND, time(NULL));
 
 			serv_send_im(purple_account_get_connection(account), (char *)pouncee, (char *)message, 0);



More information about the Commits mailing list