/pidgin/main: 5d6efef74ff8: MXit: Cleanup a warning.

Andrew Victor andrew.victor at mxit.com
Mon Apr 1 06:33:51 EDT 2013


Changeset: 5d6efef74ff816517922461722dc45fae6c361ba
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2013-04-01 11:22 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/5d6efef74ff8

Description:

MXit: Cleanup a warning.

protocol.c:615:10: warning: variable 'polldiff' set but not used

diffstat:

 libpurple/protocols/mxit/protocol.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (28 lines):

diff --git a/libpurple/protocols/mxit/protocol.c b/libpurple/protocols/mxit/protocol.c
--- a/libpurple/protocols/mxit/protocol.c
+++ b/libpurple/protocols/mxit/protocol.c
@@ -612,7 +612,6 @@ gboolean mxit_manage_polling( gpointer u
 	struct MXitSession* session		= (struct MXitSession*) user_data;
 	gboolean			poll		= FALSE;
 	gint64				now			= mxit_now_milli();
-	int					polldiff;
 	gint64				rxdiff;
 
 	if ( !( session->flags & MXIT_FLAG_LOGGEDIN ) ) {
@@ -622,7 +621,6 @@ gboolean mxit_manage_polling( gpointer u
 
 	/* calculate the time differences */
 	rxdiff = now - session->last_rx;
-	polldiff = now - session->http_last_poll;
 
 	if ( rxdiff < MXIT_HTTP_POLL_MIN ) {
 		/* we received some reply a few moments ago, so reset the poll interval */
@@ -639,7 +637,7 @@ gboolean mxit_manage_polling( gpointer u
 	}
 
 	/* debugging */
-	//purple_debug_info( MXIT_PLUGIN_ID, "POLL TIMER: %i (%i,%i)\n", session->http_interval, rxdiff, polldiff );
+	//purple_debug_info( MXIT_PLUGIN_ID, "POLL TIMER: %i (%i)\n", session->http_interval, rxdiff );
 
 	if ( poll ) {
 		/* send poll request */



More information about the Commits mailing list