Ignore:
Timestamp:
2008-07-16T23:22:52Z (16 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
9b55485
Parents:
9730d72 (diff), 6a78c0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge in latest trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r9730d72 r6738a67  
    6969#ifdef __MINGW32__
    7070# include <winsock2.h>
    71 # define write(a,b,c) send(a,b,c,0)
    72 # define read(a,b,c)  recv(a,b,c,0)
    7371#endif
    7472
     
    381379
    382380/* call repeatedly to get the next one */
    383 /*
    384381static struct yahoo_input_data * find_input_by_id(int id)
    385382{
     
    392389        return NULL;
    393390}
    394 */
    395391
    396392static struct yahoo_input_data * find_input_by_id_and_webcam_user(int id, const char * who)
     
    737733
    738734        memcpy(data + pos, "YMSG", 4); pos += 4;
    739         pos += yahoo_put16(data + pos, 0x0a00);
     735        pos += yahoo_put16(data + pos, 0x000c);
    740736        pos += yahoo_put16(data + pos, 0x0000);
    741737        pos += yahoo_put16(data + pos, pktlen + extra_pad);
     
    797793{
    798794        struct yahoo_data *yd = find_conn_by_id(id);
     795       
    799796        if(!yd)
    800797                return;
     
    31663163
    31673164        LOG(("write callback: id=%d fd=%d data=%p", id, fd, data));
    3168         if(!yid || !yid->txqueues)
     3165        if(!yid || !yid->txqueues || !find_conn_by_id(id))
    31693166                return -2;
    31703167       
     
    33513348                                        break;
    33523349                                case 5:
    3353                                         if(cp != "\005")
     3350                                        if(strcmp(cp, "5") != 0)
    33543351                                                yct->location = cp;
    33553352                                        k = 0;
     
    38423839        }
    38433840
    3844        
    3845 /*      do {
     3841        do {
    38463842                yahoo_input_close(yid);
    3847         } while((yid = find_input_by_id(id)));*/
    3848        
     3843        } while((yid = find_input_by_id(id)));
    38493844}
    38503845
Note: See TracChangeset for help on using the changeset viewer.