Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r9cb9868 r08995b0  
    2626#include "nogaim.h"
    2727#include "msn.h"
    28 
    29 static struct prpl *my_protocol = NULL;
    3028
    3129static void msn_login( struct aim_user *acct )
     
    172170       
    173171        for( i = 0; msn_away_state_list[i].number > -1; i ++ )
    174                 l = g_list_append( l, msn_away_state_list[i].name );
     172                l = g_list_append( l, (void*) msn_away_state_list[i].name );
    175173       
    176174        return( l );
     
    179177static char *msn_get_status_string( struct gaim_connection *gc, int number )
    180178{
    181         struct msn_away_state *st = msn_away_state_by_number( number );
     179        const struct msn_away_state *st = msn_away_state_by_number( number );
    182180       
    183181        if( st )
    184                 return( st->name );
     182                return( (char*) st->name );
    185183        else
    186184                return( "" );
     
    191189        char buf[1024];
    192190        struct msn_data *md = gc->proto_data;
    193         struct msn_away_state *st;
     191        const struct msn_away_state *st;
    194192       
    195193        if( strcmp( state, GAIM_AWAY_CUSTOM ) == 0 )
     
    375373}
    376374
    377 void msn_init(struct prpl *ret)
    378 {
    379         ret->protocol = PROTO_MSN;
     375void msn_init()
     376{
     377        struct prpl *ret = g_new0(struct prpl, 1);
     378        ret->name = "msn";
    380379        ret->login = msn_login;
    381380        ret->close = msn_close;
     
    400399        ret->cmp_buddynames = g_strcasecmp;
    401400
    402         my_protocol = ret;
    403 }
     401        register_protocol(ret);
     402}
Note: See TracChangeset for help on using the changeset viewer.