aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-12-06 01:53:16 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2011-12-06 01:53:16 +0100
commit5dc7f907bf24e52f83b9d2e7613cf4e1f7aebcdf (patch)
tree1d3e1f743bc73450cdb082aa9ab46c66d62fa5ce
parentdf98ee8b4abaa890a02e706d69b93724e8f7744d (diff)
msn: unused-but-set-variables
-rw-r--r--protocols/msn/sb.c6
-rw-r--r--protocols/msn/soap.c5
2 files changed, 2 insertions, 9 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c
index 37ac2889..69114469 100644
--- a/protocols/msn/sb.c
+++ b/protocols/msn/sb.c
@@ -307,7 +307,6 @@ gboolean msn_sb_connected( gpointer data, gint source, b_input_condition cond )
{
struct msn_switchboard *sb = data;
struct im_connection *ic;
- struct msn_data *md;
char buf[1024];
/* Are we still alive? */
@@ -315,7 +314,6 @@ gboolean msn_sb_connected( gpointer data, gint source, b_input_condition cond )
return FALSE;
ic = sb->ic;
- md = ic->proto_data;
if( source != sb->fd )
{
@@ -674,16 +672,12 @@ static int msn_sb_message( struct msn_handler_data *handler, char *msg, int msgl
struct msn_switchboard *sb = handler->data;
struct im_connection *ic = sb->ic;
char *body;
- int blen = 0;
if( !num_parts )
return( 1 );
if( ( body = strstr( msg, "\r\n\r\n" ) ) )
- {
body += 4;
- blen = msglen - ( body - msg );
- }
if( strcmp( cmd[0], "MSG" ) == 0 )
{
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c
index ccfc1a67..7d9f3791 100644
--- a/protocols/msn/soap.c
+++ b/protocols/msn/soap.c
@@ -209,7 +209,6 @@ static char *msn_soap_abservice_build( const char *body_fmt, const char *scenari
static void msn_soap_debug_print( const char *headers, const char *payload )
{
char *s;
- int st;
if( !getenv( "BITLBEE_DEBUG" ) )
return;
@@ -217,9 +216,9 @@ static void msn_soap_debug_print( const char *headers, const char *payload )
if( headers )
{
if( ( s = strstr( headers, "\r\n\r\n" ) ) )
- st = write( 2, headers, s - headers + 4 );
+ write( 2, headers, s - headers + 4 );
else
- st = write( 2, headers, strlen( headers ) );
+ write( 2, headers, strlen( headers ) );
}
if( payload )