Changeset 3760


Ignore:
Timestamp:
Nov 8, 2007, 9:25:17 PM (14 years ago)
Author:
charles
Message:

minor tweaks.

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r3735 r3760  
    2626#include "inout.h"
    2727#include "list.h"
    28 #include "net.h"
    2928#include "platform.h"
    3029#include "peer-mgr.h"
  • trunk/libtransmission/peer-io.c

    r3753 r3760  
    504504    {
    505505        case PEER_ENCRYPTION_NONE:
    506             evbuffer_remove(  inbuf, bytes, byteCount );
     506            evbuffer_remove( inbuf, bytes, byteCount );
    507507            break;
    508508
    509509        case PEER_ENCRYPTION_RC4:
    510             evbuffer_remove(  inbuf, bytes, byteCount );
     510            evbuffer_remove( inbuf, bytes, byteCount );
    511511            tr_cryptoDecrypt( io->crypto, byteCount, bytes, bytes );
    512512            break;
  • trunk/libtransmission/peer-msgs.c

    r3753 r3760  
    966966    if( !messageLengthIsCorrect( msgs, id, msglen ) )
    967967    {
     968        dbgmsg( msgs, "bad packet - BT message #%d with a length of %d", (int)id, (int)msglen );
    968969        fireGotError( msgs );
    969970        return READ_DONE;
     
    10371038        }
    10381039
    1039         case BT_PIECE: {
     1040        case BT_PIECE:
    10401041            dbgmsg( msgs, "got a Piece!" );
    10411042            assert( msgs->blockToUs.length == 0 );
     
    10471048            return READ_AGAIN;
    10481049            break;
    1049         }
    1050 
    1051         case BT_PORT: {
     1050
     1051        case BT_PORT:
    10521052            dbgmsg( msgs, "Got a BT_PORT" );
    10531053            tr_peerIoReadUint16( msgs->io, inbuf, &msgs->info->port );
    10541054            break;
    1055         }
    1056    
     1055   
     1056#if 0
    10571057        case BT_SUGGEST: {
    10581058            /* FIXME(tiennou) */
     
    10901090            break;
    10911091        }
     1092#endif
    10921093       
    10931094        case BT_LTEP:
     
    13061307                        msgs->blockToUs.offset,
    13071308                        EVBUFFER_LENGTH( msgs->inBlock ) );
    1308         evbuffer_drain( msgs->inBlock, ~0 );
     1309        evbuffer_drain( msgs->inBlock, EVBUFFER_LENGTH( msgs->inBlock ) );
    13091310        msgs->state = AWAITING_BT_LENGTH;
    13101311    }
Note: See TracChangeset for help on using the changeset viewer.