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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r289bd2d rdaae10f  
    381381                if( bud->away_state )
    382382                        imcb_log( ic, "Away state: %s", bud->away_state->full_name );
    383                 imcb_log( ic, "Status message: %s", bud->away_message ? : "(none)" );
     383                imcb_log( ic, "Status message: %s", bud->away_message ? bud->away_message : "(none)" );
    384384               
    385385                bud = bud->next;
     
    395395        /* state_txt == NULL -> Not away.
    396396           Unknown state -> fall back to the first defined away state. */
    397         jd->away_state = state_txt ? jabber_away_state_by_name( state_txt )
    398                          ? : jabber_away_state_list : NULL;
     397        if( state_txt == NULL )
     398                jd->away_state = NULL;
     399        else if( ( jd->away_state = jabber_away_state_by_name( state_txt ) ) == NULL )
     400                jd->away_state = jabber_away_state_list;
    399401       
    400402        g_free( jd->away_message );
Note: See TracChangeset for help on using the changeset viewer.