Changeset 12096


Ignore:
Timestamp:
Mar 4, 2011, 11:26:10 PM (11 years ago)
Author:
jordan
Message:

(trunk) copyediting: remove trailing spaces from source code lines in daemon/ gtk/ libtransmission/ and utils/

Location:
trunk
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11923 r12096  
    244244    { 910, "encryption-required",    "Encrypt all peer connections", "er", 0, NULL },
    245245    { 911, "encryption-preferred",   "Prefer encrypted peer connections", "ep", 0, NULL },
    246     { 912, "encryption-tolerated",   "Prefer unencrypted peer connections", "et", 0, NULL }, 
     246    { 912, "encryption-tolerated",   "Prefer unencrypted peer connections", "et", 0, NULL },
    247247    { 850, "exit",                   "Tell the transmission session to shut down", NULL, 0, NULL },
    248248    { 940, "files",                  "List the current torrent(s)' files", "f",  0, NULL },
     
    19111911
    19121912            if( tset != 0 ) { addIdArg( tr_bencDictFind( tset, ARGUMENTS ), id ); status |= flush( rpcurl, &tset ); }
    1913            
     1913
    19141914            switch( c )
    19151915            {
  • trunk/libtransmission/announcer.c

    r12093 r12096  
    516516static size_t
    517517publishPeersCompact( tr_tier * tier, int seeds, int leechers,
    518                         const void * compact, int compactLen )
     518                     const void * compact, int compactLen )
    519519{
    520520    size_t n = 0;
     
    524524    tr_free( pex );
    525525    return n;
    526 }   
     526}
    527527
    528528static size_t
    529529publishPeersCompact6( tr_tier * tier, int seeds, int leechers,
    530                          const void * compact, int compactLen )
     530                      const void * compact, int compactLen )
    531531{
    532532    size_t n = 0;
     
    578578
    579579static char*
    580 createAnnounceURL( const tr_announcer     * announcer,
    581                    const tr_torrent       * torrent,
    582                    const tr_tier          * tier,
    583                    const char             * eventName )
     580createAnnounceURL( const tr_announcer  * announcer,
     581                   const tr_torrent    * torrent,
     582                   const tr_tier       * tier,
     583                   const char          * eventName )
    584584{
    585585    const int isStopping = !strcmp( eventName, "stopped" );
     
    14711471    if( !ret && ( a->announceAt != b->announceAt ) )
    14721472        ret = a->announceAt < b->announceAt ? -1 : 1;
    1473          
     1473
    14741474    return ret;
    14751475}
  • trunk/libtransmission/bitfield.c

    r12012 r12096  
    205205{
    206206    size_t ret = 0;
    207     const int first_byte = begin >> 3u; 
     207    const int first_byte = begin >> 3u;
    208208    const int last_byte = ( end - 1 ) >> 3u;
    209209
  • trunk/libtransmission/bitset.c

    r12020 r12096  
    129129        return;
    130130
    131     b->haveAll = FALSE; 
     131    b->haveAll = FALSE;
    132132    if( !b->bitfield.bits )
    133133    {
     
    168168    const uint8_t * sit = set->bitfield.bits;
    169169    const uint8_t * send = sit + set->bitfield.byteCount;
    170    
     170
    171171    if( b->haveAll || set->haveAll )
    172172        return b->haveAll;
  • trunk/libtransmission/net.c

    r12094 r12096  
    251251
    252252tr_bool
    253 tr_ssToAddr( tr_address * setme_addr,     
    254              tr_port    * setme_port,     
     253tr_ssToAddr( tr_address * setme_addr,
     254             tr_port    * setme_port,
    255255             const struct sockaddr_storage * from )
    256256{
  • trunk/libtransmission/net.h

    r12094 r12096  
    8080extern const tr_address tr_in6addr_any;
    8181
    82 tr_bool tr_ssToAddr( tr_address * setme_addr,     
    83                      tr_port    * setme_port,     
     82tr_bool tr_ssToAddr( tr_address * setme_addr,
     83                     tr_port    * setme_port,
    8484                     const struct sockaddr_storage * from );
    8585
  • trunk/libtransmission/peer-io.c

    r12075 r12096  
    617617    assert( tr_isAddress( addr ) );
    618618
    619     return tr_peerIoNew( session, parent, addr, port, NULL, TRUE, FALSE, 
     619    return tr_peerIoNew( session, parent, addr, port, NULL, TRUE, FALSE,
    620620                         fd, utp_socket );
    621621}
  • trunk/libtransmission/peer-mgr.c

    r12086 r12096  
    18971897        if( from < a->fromBest )
    18981898            a->fromBest = from;
    1899        
     1899
    19001900        if( a->seedProbability == -1 )
    19011901            atomSetSeedProbability( a, seedProbability );
     
    24542454tr_peerUpdateProgress( tr_torrent * tor, tr_peer * peer )
    24552455{
    2456     const tr_bitset * have = &peer->have; 
     2456    const tr_bitset * have = &peer->have;
    24572457
    24582458    if( have->haveAll )
     
    24812481tr_peerMgrOnTorrentGotMetainfo( tr_torrent * tor )
    24822482{
    2483     int i; 
    2484     const int peerCount = tr_ptrArraySize( &tor->torrentPeers->peers ); 
    2485     tr_peer ** peers = (tr_peer**) tr_ptrArrayBase( &tor->torrentPeers->peers ); 
    2486  
    2487     /* some peer_msgs' progress fields may not be accurate if we 
     2483    int i;
     2484    const int peerCount = tr_ptrArraySize( &tor->torrentPeers->peers );
     2485    tr_peer ** peers = (tr_peer**) tr_ptrArrayBase( &tor->torrentPeers->peers );
     2486
     2487    /* some peer_msgs' progress fields may not be accurate if we
    24882488       didn't have the metadata before now... so refresh them all... */
    2489     for( i=0; i<peerCount; ++i ) 
     2489    for( i=0; i<peerCount; ++i )
    24902490        tr_peerUpdateProgress( tor, peers[i] );
    24912491}
  • trunk/libtransmission/peer-mgr.h

    r12086 r12096  
    5555    ADDED_F_HOLEPUNCH = 8,
    5656
    57     /* true if the peer telling us about this peer 
    58      * initiated the connection (implying that it is connectible) */ 
    59    ADDED_F_CONNECTABLE = 16
     57    /* true if the peer telling us about this peer
     58     * initiated the connection (implying that it is connectible) */
     59    ADDED_F_CONNECTABLE = 16
    6060};
    6161
  • trunk/libtransmission/peer-msgs.c

    r12065 r12096  
    12801280            if( tr_torrentHasMetadata( msg->torrent ) )
    12811281                return len == ( msg->torrent->info.pieceCount + 7u ) / 8u + 1u;
    1282             /* we don't know the piece count yet, 
     1282            /* we don't know the piece count yet,
    12831283               so we can only guess whether to send TRUE or FALSE */
    12841284            if( msg->metadata_size_hint > 0 )
  • trunk/libtransmission/resume.c

    r12012 r12096  
    446446           the file's mtime, and some lest recently, then that file will
    447447           have a list containing timestamps for each piece.
    448            
     448
    449449           However, the most common use case is that the file doesn't change
    450450           after it's downloaded. To reduce overhead in the .resume file,
     
    498498        {
    499499            /* per-piece timestamps were added in 2.20.
    500              
     500
    501501               If some of a file's pieces have been checked more recently than
    502502               the file's mtime, and some lest recently, then that file will
    503503               have a list containing timestamps for each piece.
    504              
     504
    505505               However, the most common use case is that the file doesn't change
    506506               after it's downloaded. To reduce overhead in the .resume file,
  • trunk/libtransmission/rpcimpl.c

    r12086 r12096  
    16281628    }
    16291629    tr_bencDictAddStr( d, TR_PREFS_KEY_ENCRYPTION, str );
    1630    
     1630
    16311631    return NULL;
    16321632}
  • trunk/libtransmission/torrent.c

    r12086 r12096  
    18081808void
    18091809tr_torrentRemove( tr_torrent   * tor,
    1810                   tr_bool        deleteFlag, 
     1810                  tr_bool        deleteFlag,
    18111811                  tr_fileFunc    deleteFunc )
    18121812{
     
    19411941            NULL };
    19421942
    1943         tr_torinf( tor, "Calling script \"%s\"", script ); 
     1943        tr_torinf( tor, "Calling script \"%s\"", script );
    19441944
    19451945#ifdef WIN32
     
    22542254
    22552255void
    2256 tr_torrentGetBlockLocation( const tr_torrent * tor, 
     2256tr_torrentGetBlockLocation( const tr_torrent * tor,
    22572257                            tr_block_index_t   block,
    22582258                            tr_piece_index_t * piece,
  • trunk/libtransmission/torrent.h

    r12047 r12096  
    8383                                 uint32_t           length );
    8484
    85 void             tr_torrentGetBlockLocation( const tr_torrent * tor, 
     85void             tr_torrentGetBlockLocation( const tr_torrent * tor,
    8686                                             tr_block_index_t   block,
    87                                              tr_piece_index_t * piece, 
     87                                             tr_piece_index_t * piece,
    8888                                             uint32_t         * offset,
    8989                                             uint32_t         * length );
  • trunk/libtransmission/tr-dht.c

    r11893 r12096  
    11/*
    22 * Copyright (c) 2009-2010 by Juliusz Chroboczek
    3  * 
     3 *
    44 * Permission is hereby granted, free of charge, to any person obtaining a copy
    55 * of this software and associated documentation files (the "Software"), to deal
     
    88 * copies of the Software, and to permit persons to whom the Software is
    99 * furnished to do so, subject to the following conditions:
    10  * 
     10 *
    1111 * The above copyright notice and this permission notice shall be included in
    1212 * all copies or substantial portions of the Software.
    13  * 
     13 *
    1414 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     
    269269
    270270    if( session ) /* already initialized */
    271         return -1;   
     271        return -1;
    272272
    273273    tr_ndbg( "DHT", "Initializing DHT" );
  • trunk/libtransmission/tr-dht.h

    r11852 r12096  
    11/*
    22 * Copyright (c) 2009-2010 by Juliusz Chroboczek
    3  * 
     3 *
    44 * Permission is hereby granted, free of charge, to any person obtaining a copy
    55 * of this software and associated documentation files (the "Software"), to deal
     
    88 * copies of the Software, and to permit persons to whom the Software is
    99 * furnished to do so, subject to the following conditions:
    10  * 
     10 *
    1111 * The above copyright notice and this permission notice shall be included in
    1212 * all copies or substantial portions of the Software.
    13  * 
     13 *
    1414 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     
    1919 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    2020 * THE SOFTWARE.
    21  * 
     21 *
    2222 * $Id$
    23  * 
     23 *
    2424 */
    2525
  • trunk/libtransmission/tr-udp.c

    r12095 r12096  
    218218
    219219    free(buf);
    220 }   
     220}
    221221
    222222void
  • trunk/libtransmission/tr-utp.c

    r12094 r12096  
    113113        return;
    114114    }
    115    
     115
    116116    UTP_GetPeerName(s, from, &fromlen);
    117117    if( !tr_ssToAddr( &addr, &port, &from_storage ) )
  • trunk/libtransmission/upnp.c

    r11709 r12096  
    144144
    145145        tr_snprintf( portStr, sizeof( portStr ), "%d", handle->port );
    146         if( UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype, 
     146        if( UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
    147147            portStr, "TCP", intClient, intPort ) != UPNPCOMMAND_SUCCESS  ||
    148             UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype, 
     148            UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
    149149            portStr, "UDP", intClient, intPort ) != UPNPCOMMAND_SUCCESS )
    150150        {
  • trunk/utils/create.c

    r11865 r12096  
    8686    result = getcwd( buf, sizeof( buf ) );
    8787#endif
    88     if( result == NULL ) 
     88    if( result == NULL )
    8989    {
    9090        fprintf( stderr, "getcwd error: \"%s\"", tr_strerror( errno ) );
  • trunk/web/javascript/dialog.js

    r11195 r12096  
    103103                }
    104104        },
    105  
     105
    106106    /*
    107107     * Display an alert dialog
Note: See TracChangeset for help on using the changeset viewer.