changeset 32397:404f8a1d98d7

Use accessor functions where available.
author andrew.victor@mxit.com
date Tue, 23 Aug 2011 21:06:12 +0000
parents e9ea77904829
children 307e851bc3a1
files libpurple/protocols/mxit/filexfer.c libpurple/protocols/mxit/login.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/filexfer.c	Tue Aug 23 20:57:19 2011 +0000
+++ b/libpurple/protocols/mxit/filexfer.c	Tue Aug 23 21:06:12 2011 +0000
@@ -395,7 +395,7 @@
 	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;
 
--- a/libpurple/protocols/mxit/login.c	Tue Aug 23 20:57:19 2011 +0000
+++ b/libpurple/protocols/mxit/login.c	Tue Aug 23 21:06:12 2011 +0000
@@ -300,7 +300,7 @@
 	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 ) );
 }