Changes in protocols/msn/msn.c [9cb9868:1053836]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r9cb9868 r1053836 27 27 #include "msn.h" 28 28 29 static struct prpl *my_protocol = NULL;30 31 29 static void msn_login( struct aim_user *acct ) 32 30 { … … 86 84 { 87 85 m = l->data; 86 87 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who ); 88 88 g_free( m->who ); 89 89 g_free( m->text ); … … 91 91 } 92 92 g_slist_free( md->msgq ); 93 94 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message(s), you'll have to resend them." );95 93 } 96 94 … … 172 170 173 171 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 ); 175 173 176 174 return( l ); … … 179 177 static char *msn_get_status_string( struct gaim_connection *gc, int number ) 180 178 { 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 ); 182 180 183 181 if( st ) 184 return( st->name );182 return( (char*) st->name ); 185 183 else 186 184 return( "" ); … … 191 189 char buf[1024]; 192 190 struct msn_data *md = gc->proto_data; 193 struct msn_away_state *st;191 const struct msn_away_state *st; 194 192 195 193 if( strcmp( state, GAIM_AWAY_CUSTOM ) == 0 ) … … 375 373 } 376 374 377 void msn_init(struct prpl *ret) 378 { 379 ret->protocol = PROTO_MSN; 375 void msn_init() 376 { 377 struct prpl *ret = g_new0(struct prpl, 1); 378 ret->name = "msn"; 380 379 ret->login = msn_login; 381 380 ret->close = msn_close; … … 400 399 ret->cmp_buddynames = g_strcasecmp; 401 400 402 my_protocol = ret;403 } 401 register_protocol(ret); 402 }
Note: See TracChangeset
for help on using the changeset viewer.