Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    rba9edaa ra2582c8  
    3030#include "md5.h"
    3131
    32 static gboolean msn_ns_callback( gpointer data, gint source, b_input_condition cond );
     32static void msn_ns_callback( gpointer data, gint source, GaimInputCondition cond );
    3333static int msn_ns_command( gpointer data, char **cmd, int num_parts );
    3434static int msn_ns_message( gpointer data, char *msg, int msglen, char **cmd, int num_parts );
     
    3636static void msn_auth_got_passport_id( struct passport_reply *rep );
    3737
    38 gboolean msn_ns_connected( gpointer data, gint source, b_input_condition cond )
     38void msn_ns_connected( gpointer data, gint source, GaimInputCondition cond )
    3939{
    4040        struct gaim_connection *gc = data;
     
    4343       
    4444        if( !g_slist_find( msn_connections, gc ) )
    45                 return FALSE;
     45                return;
    4646       
    4747        if( source == -1 )
     
    4949                hide_login_progress( gc, "Could not connect to server" );
    5050                signoff( gc );
    51                 return FALSE;
     51                return;
    5252        }
    5353       
     
    7575        if( msn_write( gc, s, strlen( s ) ) )
    7676        {
    77                 gc->inpa = b_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, gc );
     77                gc->inpa = gaim_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, gc );
    7878                set_login_progress( gc, 1, "Connected to server, waiting for reply" );
    7979        }
    80        
    81         return FALSE;
    8280}
    8381
    84 static gboolean msn_ns_callback( gpointer data, gint source, b_input_condition cond )
     82void msn_ns_callback( gpointer data, gint source, GaimInputCondition cond )
    8583{
    8684        struct gaim_connection *gc = data;
     
    9189                hide_login_progress( gc, "Error while reading from server" );
    9290                signoff( gc );
    93                
    94                 return FALSE;
    95         }
    96         else
    97                 return TRUE;
     91        }
    9892}
    9993
     
    136130                if( num_parts == 6 && strcmp( cmd[2], "NS" ) == 0 )
    137131                {
    138                         b_event_remove( gc->inpa );
     132                        gaim_input_remove( gc->inpa );
    139133                        gc->inpa = 0;
    140134                        closesocket( md->fd );
     
    656650        if( key == NULL )
    657651        {
    658                 hide_login_progress( gc, "Error during Passport authentication" );
     652                char *err;
     653               
     654                err = g_strdup_printf( "Error during Passport authentication (%s)",
     655                                       rep->error_string ? rep->error_string : "Unknown error" );
     656               
     657                hide_login_progress( gc, err );
    659658                signoff( gc );
     659               
     660                g_free( err );
    660661        }
    661662        else
Note: See TracChangeset for help on using the changeset viewer.