Changeset daae10f for protocols/msn


Ignore:
Timestamp:
2010-08-07T16:33:02Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7b87539
Parents:
289bd2d
Message:

OpenSolaris (non-gcc) fixes, patches from Dagobert Michelsen <dam@…>
with some changes.

Location:
protocols/msn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/Makefile

    r289bd2d rdaae10f  
    1515objects = msn.o msn_util.o ns.o passport.o sb.o tables.o
    1616
    17 CFLAGS += -Wall
    1817LFLAGS += -r
    1918
  • protocols/msn/msn.c

    r289bd2d rdaae10f  
    176176        struct msn_data *md = ic->proto_data;
    177177       
    178         if( state )
    179                 md->away_state = msn_away_state_by_name( state ) ? :
    180                                  msn_away_state_list + 1;
    181         else
     178        if( state == NULL )
    182179                md->away_state = msn_away_state_list;
     180        else if( ( md->away_state = msn_away_state_by_name( state ) ) == NULL )
     181                md->away_state = msn_away_state_list + 1;
    183182       
    184183        g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, md->away_state->code );
Note: See TracChangeset for help on using the changeset viewer.