Changeset 9544


Ignore:
Timestamp:
Nov 22, 2009, 3:57:36 AM (13 years ago)
Author:
charles
Message:

(trunk libT) a very minor commit. remove trailing spaces from lines and other stuff like that

Location:
trunk/libtransmission
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r9495 r9544  
    102102        tr_bool fileExists;
    103103        tr_preallocation_mode preallocationMode;
    104    
     104
    105105        fileExists = tr_torrentFindFile2( tor, fileIndex, &base, &subpath );
    106106
  • trunk/libtransmission/magnet.c

    r9531 r9544  
    5757        int digit;
    5858        int lookup = in[i] - '0';
    59  
     59
    6060        /* Skip chars outside the lookup table */
    6161        if( lookup<0 || lookup>=base32LookupLen )
    6262            continue;
    63    
     63
    6464        /* If this digit is not in the table, ignore it */
    6565        digit = base32Lookup[lookup];
     
    8181            out[offset] |= (digit >> index);
    8282            offset++;
    83    
     83
    8484            if( offset >= outlen )
    8585                break;
  • trunk/libtransmission/magnet.h

    r9531 r9544  
    1616#include "transmission.h"
    1717
    18 typedef struct
     18typedef struct tr_magnet_info
    1919{
    2020    uint8_t hash[20];
  • trunk/libtransmission/peer-mgr.c

    r9533 r9544  
    558558***
    559559*** There are two data structures associated with managing block requests:
    560 *** 
     560***
    561561*** 1. Torrent::requests, an array of "struct block_request" which keeps
    562562***    track of which blocks have been requested, and when, and by which peers.
    563563***    This is list is used for (a) cancelling requests that have been pending
    564564***    for too long and (b) avoiding duplicate requests before endgame.
    565 *** 
     565***
    566566*** 2. Torrent::pieces, an array of "struct weighted_piece" which lists the
    567567***    pieces that we want to request.  It's used to decide which pieces to
    568568***    return next when tr_peerMgrGetBlockRequests() is called.
    569 **/ 
     569**/
    570570
    571571/**
     
    617617        }
    618618
    619 //fprintf( stderr, "sorting requests by %s\n", (mode==REQ_SORTED_BY_BLOCK)?"block":"time" ); 
     619//fprintf( stderr, "sorting requests by %s\n", (mode==REQ_SORTED_BY_BLOCK)?"block":"time" );
    620620        qsort( t->requests, t->requestCount,
    621621               sizeof( struct block_request ), compar );
     
    14001400                        tr_atomAddrStr( peer->atom ) );
    14011401            }
    1402             else 
     1402            else
    14031403            {
    14041404                tordbg( t, "unhandled error: %s", tr_strerror( e->err ) );
  • trunk/libtransmission/session.c

    r9522 r9544  
    692692    --session->waiting;
    693693
    694 ///cccc
    695 //initBlocklist       
    696 //    session->rpcServer = tr_rpcInit( session, settings );
    697 
    698 
    699694    tr_sessionSet( session, &settings );
    700695
  • trunk/libtransmission/utils-test.c

    r9531 r9544  
    261261        check( pos == expected_pos[i-1] )
    262262        check( exact == expected_exact[i-1] )
    263      
    264263    }
    265264
  • trunk/libtransmission/webseed.c

    r9513 r9544  
    111111    if( url[url_len - 1] == '/' && file->name )
    112112        tr_http_escape( out, file->name, strlen(file->name), 1 );
    113        
     113
    114114    ret = tr_strndup( EVBUFFER_DATA( out ), EVBUFFER_LENGTH( out ) );
    115115    evbuffer_free( out );
Note: See TracChangeset for help on using the changeset viewer.