Changeset fb117aee


Ignore:
Timestamp:
2010-04-02T02:29:45Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
231b08b
Parents:
e63507a
Message:

Cleaned lots of compiler warnings so I can get some signal again.

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.h

    re63507a rfb117aee  
    159159gboolean bitlbee_io_current_client_write( gpointer data, gint source, b_input_condition cond );
    160160
    161 //void root_command_string( irc_t *irc, user_t *u, char *command, int flags );
     161void root_command_string( irc_t *irc, char *command );
    162162void root_command( irc_t *irc, char *command[] );
    163163gboolean bitlbee_shutdown( gpointer data, gint fd, b_input_condition cond );
  • irc.c

    re63507a rfb117aee  
    2525
    2626#include "bitlbee.h"
     27#include "ipc.h"
    2728
    2829GSList *irc_connection_list;
  • irc_channel.c

    re63507a rfb117aee  
    139139static gboolean control_channel_privmsg( irc_channel_t *ic, const char *msg )
    140140{
     141        char cmd[strlen(msg)+1];
     142       
    141143        g_free( ic->irc->last_root_cmd );
    142144        ic->irc->last_root_cmd = g_strdup( ic->name );
    143145       
    144         root_command_string( ic->irc, msg );
     146        strcpy( cmd, msg );
     147        root_command_string( ic->irc, cmd );
    145148       
    146149        return TRUE;
  • irc_commands.c

    re63507a rfb117aee  
    3939                   out we don't require it, which will break this feature.)
    4040                   Try to identify using the given password. */
    41                 /*return root_command( irc, send_cmd );*/
     41                return root_command( irc, send_cmd );
    4242        }
    4343        /* Handling in pre-logged-in state, first see if this server is
  • irc_user.c

    re63507a rfb117aee  
    121121static gboolean root_privmsg( irc_user_t *iu, const char *msg )
    122122{
     123        char cmd[strlen(msg)+1];
     124       
    123125        g_free( iu->irc->last_root_cmd );
    124126        iu->irc->last_root_cmd = g_strdup( iu->nick );
    125127       
    126         root_command_string( iu->irc, msg );
     128        strcpy( cmd, msg );
     129        root_command_string( iu->irc, cmd );
    127130       
    128131        return TRUE;
  • protocols/account.c

    re63507a rfb117aee  
    217217{
    218218        account_t *a, *l = NULL;
    219         struct chat *c, *nc;
    220219       
    221220        if( acc->ic )
  • protocols/bee.h

    re63507a rfb117aee  
    9191/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
    9292/* Call when a handle says something. 'flags' and 'sent_at may be just 0. */
    93 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at );
     93G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, guint32 flags, time_t sent_at );
    9494
    9595#endif /* __BEE_H__ */
  • protocols/bee_user.c

    re63507a rfb117aee  
    9292                msg = buf;
    9393        }
    94        
    95         st = bu->ic->acc->prpl->buddy_msg( bu->ic, bu->handle, msg, flags );
     94        else
     95                buf = g_strdup( msg );
     96       
     97        st = bu->ic->acc->prpl->buddy_msg( bu->ic, bu->handle, buf, flags );
    9698        g_free( buf );
    9799       
  • protocols/nogaim.c

    re63507a rfb117aee  
    3737#include "nogaim.h"
    3838#include "chat.h"
    39 
    40 static int remove_chat_buddy_silent( struct groupchat *b, const char *handle );
    4139
    4240GSList *connections;
     
    475473};
    476474
     475#if 0
    477476static void imcb_ask_auth_cb_no( void *data )
    478477{
     
    494493        g_free( cbd );
    495494}
     495#endif
    496496
    497497void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname )
     
    516516
    517517
     518#if 0
    518519static void imcb_ask_add_cb_no( void *data )
    519520{
     
    530531        return imcb_ask_add_cb_no( data );
    531532}
     533#endif
    532534
    533535void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname )
     
    597599        return c;
    598600#endif
     601        return NULL;
    599602}
    600603
     
    783786}
    784787
     788#if 0
    785789static int remove_chat_buddy_silent( struct groupchat *b, const char *handle )
    786790{
    787 #if 0
    788791        GList *i;
    789792       
     
    801804                i = i->next;
    802805        }
    803 #endif
    804806       
    805807        return 0;
    806808}
     809#endif
    807810
    808811
Note: See TracChangeset for help on using the changeset viewer.