Changeset b8a491d for protocols/jabber


Ignore:
Timestamp:
2010-03-18T00:30:38Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
699376f7
Parents:
78d254f1
Message:

Some compiler warning fixes and renamed "transfers" command to just
"transfer" since all root commands are singular so far.

Location:
protocols/jabber
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/s5bytestream.c

    r78d254f1 rb8a491d  
    830830        char *sid;
    831831        GSList *tflist;
    832         struct jabber_transfer *tf;
     832        struct jabber_transfer *tf = NULL;
    833833        struct xt_node *query;
    834834        struct jabber_data *jd = ic->proto_data;
  • protocols/jabber/si.c

    r78d254f1 rb8a491d  
    4141        if( tf->fd != -1 )
    4242        {
    43                 disconnect( tf->fd );
     43                closesocket( tf->fd );
    4444                tf->fd = -1;
    4545        }
     
    156156        if( bud == NULL )
    157157        {
    158                 imcb_file_canceled( tf->ft, "Couldn't find buddy (BUG?)" );
     158                imcb_file_canceled( ft, "Couldn't find buddy (BUG?)" );
    159159                return;
    160160        }
    161                
     161       
    162162        imcb_log( ic, "Trying to send %s(%zd bytes) to %s", ft->file_name, ft->file_size, who );
    163163
     
    232232            !( name             = xt_find_attr( d, "name" )                             ) ||
    233233            !( size_s           = xt_find_attr( d, "size" )                             ) ||
    234             !( 1               == sscanf( size_s, "%lld", &size )                       ) ||
     234            !( 1               == sscanf( size_s, "%zd", &size )                        ) ||
    235235            !( d                = xt_find_node( sinode->children, "feature" )           ) ||
    236236            !( strcmp( xt_find_attr( d, "xmlns" ), XMLNS_FEATURE ) == 0                 ) ||
     
    242242        {
    243243                imcb_log( ic, "WARNING: Received incomplete Stream Initiation request" );
    244         } else
     244        }
     245        else
    245246        {
    246247                /* Check if we support one of the options */
     
    248249                c = d->children;
    249250                while( ( c = xt_find_node( c, "option" ) ) )
    250                         if(     ( d = xt_find_node( c->children, "value" ) ) &&
    251                                 ( strcmp( d->text, XMLNS_BYTESTREAMS ) == 0 ) )
     251                        if( ( d = xt_find_node( c->children, "value" ) ) &&
     252                            ( strcmp( d->text, XMLNS_BYTESTREAMS ) == 0 ) )
    252253                        {
    253254                                requestok = TRUE;
     
    259260        }
    260261       
    261         if ( requestok )
     262        if( requestok )
    262263        {
    263264                /* Figure out who the transfer should come frome... */
    264265
     266                ext_jid = ini_jid;
    265267                if( ( s = strchr( ini_jid, '/' ) ) )
    266268                {
     
    282284                *s = '/';
    283285        }
    284 
    285         if ( !requestok )
     286        else
    286287        {
    287288                reply = jabber_make_error_packet( node, "item-not-found", "cancel", NULL );
Note: See TracChangeset for help on using the changeset viewer.