Changeset 11e090b


Ignore:
Timestamp:
2005-12-15T09:14:38Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bf02a67
Parents:
22bf64e
Message:

Moved variable declarations to the right place to make older compilers happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r22bf64e r11e090b  
    10881088                int *exch = g_new0(int, 1);
    10891089                GList *m = NULL;
     1090                char txt[1024];
     1091                struct aim_chat_invitation * inv = g_new0(struct aim_chat_invitation, 1);
     1092
    10901093                m = g_list_append(m, g_strdup(name ? name : args->info.chat.roominfo.name));
    10911094                *exch = args->info.chat.roominfo.exchange;
    10921095                m = g_list_append(m, exch);
    10931096
    1094                 char txt[1024];
    1095 
    10961097                g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg );
    1097 
    1098                 struct aim_chat_invitation * inv = g_new0(struct aim_chat_invitation, 1);
    10991098
    11001099                inv->gc = gc;
     
    25062505        struct oscar_data * od = (struct oscar_data*)gc->proto_data;
    25072506        struct chat_connection * ccon;
    2508        
    2509         if(!(ccon = find_oscar_chat(gc, id)))
    2510                 return -1;
    2511        
    25122507        int ret;
    25132508        guint8 len = strlen(message);
    25142509        char *s;
     2510       
     2511        if(!(ccon = find_oscar_chat(gc, id)))
     2512                return -1;
    25152513               
    25162514        for (s = message; *s; s++)
     
    26072605{
    26082606        struct oscar_data * od = (struct oscar_data *)gc->proto_data;
    2609 
     2607        int ret;
    26102608        static int chat_id = 0;
    26112609        char * chatname = g_new0(char, strlen(gc->username)+4);
     2610       
    26122611        g_snprintf(chatname, strlen(gc->username) + 4, "%s%d", gc->username, chat_id++);
    26132612 
    2614         int ret = oscar_chat_join(gc, chatname);
     2613        ret = oscar_chat_join(gc, chatname);
    26152614
    26162615        aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0);
Note: See TracChangeset for help on using the changeset viewer.