Changeset daae10f for protocols


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
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • protocols/Makefile

    r289bd2d rdaae10f  
    2525# Expansion of variables
    2626subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs)))
    27 CFLAGS += -Wall
    2827LFLAGS += -r
    2928
  • protocols/jabber/Makefile

    r289bd2d rdaae10f  
    1515objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o
    1616
    17 CFLAGS += -Wall
    1817LFLAGS += -r
    1918
  • 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 );
  • protocols/jabber/message.c

    r289bd2d rdaae10f  
    5959                        {
    6060                                room = from;
    61                                 from = xt_find_attr( inv, "from" ) ? : from;
     61                                if( ( from = xt_find_attr( inv, "from" ) ) == NULL )
     62                                        from = room;
    6263
    6364                                g_string_append_printf( fullmsg, "<< \002BitlBee\002 - Invitation to chatroom %s >>\n", room );
     
    7273                        {
    7374                                bud->last_msg = time( NULL );
    74                                 from = bud->ext_jid ? : bud->bare_jid;
     75                                from = bud->ext_jid ? bud->ext_jid : bud->bare_jid;
    7576                        }
    7677                        else
  • 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 );
  • protocols/nogaim.c

    r289bd2d rdaae10f  
    468468       
    469469        s = g_strdup_printf( "The user %s%s wants to add you to his/her buddy list.",
    470                              handle, realname_ ?: "" );
     470                             handle, realname_ ? realname_ : "" );
    471471       
    472472        g_free( realname_ );
     
    491491        cbd->ic->acc->prpl->add_buddy( cbd->ic, cbd->handle, NULL );
    492492       
    493         return imcb_ask_add_cb_no( data );
     493        imcb_ask_add_cb_no( data );
    494494}
    495495
  • protocols/nogaim.h

    r289bd2d rdaae10f  
    3939#define _NOGAIM_H
    4040
     41#if(__sun)
     42#include <inttypes.h>
     43#else
    4144#include <stdint.h>
     45#endif
     46
     47#include "lib/events.h"
    4248
    4349#include "bitlbee.h"
  • protocols/oscar/Makefile

    r289bd2d rdaae10f  
    1616objects = admin.o auth.o bos.o buddylist.o chat.o chatnav.o conn.o icq.o im.o info.o misc.o msgcookie.o rxhandlers.o rxqueue.o search.o service.o snac.o ssi.o stats.o tlv.o txqueue.o oscar_util.o oscar.o
    1717
    18 CFLAGS += -Wall
    1918LFLAGS += -r
    2019
  • protocols/twitter/Makefile

    r289bd2d rdaae10f  
    1515objects = twitter.o twitter_http.o twitter_lib.o
    1616
    17 CFLAGS += -Wall
    1817LFLAGS += -r
    1918
  • protocols/twitter/twitter_lib.c

    r289bd2d rdaae10f  
    2323
    2424/* For strptime(): */
     25#if(__sun)
     26#else
    2527#define _XOPEN_SOURCE
     28#endif
    2629
    2730#include "twitter_http.h"
  • protocols/yahoo/Makefile

    r289bd2d rdaae10f  
    1515objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o
    1616
    17 CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
     17CFLAGS += -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
    1818LFLAGS += -r
    1919
  • protocols/yahoo/libyahoo2.c

    r289bd2d rdaae10f  
    18591859        }
    18601860       
    1861         return yahoo_https_auth_init(had);
     1861        yahoo_https_auth_init(had);
     1862        return;
    18621863       
    18631864fail:
Note: See TracChangeset for help on using the changeset viewer.