# HG changeset patch # User andrew.victor@mxit.com # Date 1314133572 0 # Node ID 404f8a1d98d7f796fd07bcb2d02f64cae044dd8a # Parent e9ea7790482992142668bd257014b7684cca3c43 Use accessor functions where available. diff -r e9ea77904829 -r 404f8a1d98d7 libpurple/protocols/mxit/filexfer.c --- 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; diff -r e9ea77904829 -r 404f8a1d98d7 libpurple/protocols/mxit/login.c --- 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 ) ); }