pidgin: 6044eee4: Use accessor functions where available.

andrew.victor at mxit.com andrew.victor at mxit.com
Tue Aug 23 17:45:59 EDT 2011


----------------------------------------------------------------------
Revision: 6044eee442ed89464ba4e9026243e445d6dfaaff
Parent:   9f1793f116343561096097a6b2083faabd04eccd
Author:   andrew.victor at mxit.com
Date:     08/23/11 17:06:12
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6044eee442ed89464ba4e9026243e445d6dfaaff

Changelog: 

Use accessor functions where available.


Changes against parent 9f1793f116343561096097a6b2083faabd04eccd

  patched  libpurple/protocols/mxit/filexfer.c
  patched  libpurple/protocols/mxit/login.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/filexfer.c	702f1f34e03554a3897c7e92381f37d592dca166
+++ libpurple/protocols/mxit/filexfer.c	9576aed2352576d211e851812aaae35fa83d11a7
@@ -395,7 +395,7 @@ static PurpleXfer* find_mxit_xfer( struc
 	while ( item ) {
 		xfer = item->data;
 
-		if ( xfer->account == session->acc ) {
+		if ( purple_xfer_get_account( xfer ) == session->acc ) {
 			/* transfer is associated with this MXit account */
 			struct mxitxfer* mx	= xfer->data;
 
============================================================
--- libpurple/protocols/mxit/login.c	e64fff48b5428cfeaa2afd193fbcfbdfe652643e
+++ libpurple/protocols/mxit/login.c	c015f35d5417d590938add7d43d1c70a11b92e82
@@ -300,7 +300,7 @@ static void mxit_cb_register_cancel( Pur
 	purple_debug_info( MXIT_PLUGIN_ID, "mxit_cb_register_cancel\n" );
 
 	/* disconnect */
-	purple_account_disconnect( gc->account );
+	purple_account_disconnect( purple_connection_get_account( gc ) );
 }
 
 


More information about the Commits mailing list