Changeset 11522


Ignore:
Timestamp:
Dec 12, 2010, 4:43:19 PM (12 years ago)
Author:
charles
Message:

(trunk) one of the periodic, banal "remove-trailing-spaces from lines of source code" cleanup commits

Location:
trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11518 r11522  
    10071007                printf ("  Bandwidth Priority: %s\n",
    10081008                        bandwidthPriorityNames[(i + 1) & 3]);
    1009    
     1009
    10101010            printf( "\n" );
    10111011        }
     
    18861886
    18871887            if( tset != 0 ) { addIdArg( tr_bencDictFind( tset, ARGUMENTS ), id ); status |= flush( host, port, &tset ); }
    1888            
     1888
    18891889            switch( c )
    18901890            {
     
    20092009            else
    20102010                sargs = ensure_sset( &sset );
    2011            
     2011
    20122012            switch( c )
    20132013            {
     
    20782078            else
    20792079                args = ensure_tset( &tset );
    2080        
     2080
    20812081            switch( c )
    2082             {         
     2082            {
    20832083                case 'g': addFiles( args, "files-wanted", optarg );
    20842084                          break;
  • trunk/gtk/file-list.c

    r11217 r11522  
    296296    {
    297297        struct ActiveData * data = gdata;
    298    
     298
    299299        /* active means: if it's selected or any ancestor is selected */
    300300
  • trunk/gtk/makemeta-ui.c

    r11132 r11522  
    304304                                buf, builder->fileCount );
    305305        g_string_append( gstr, "; " );
    306  
     306
    307307        tr_formatter_mem_B( buf, builder->pieceSize, sizeof( buf ) );
    308308        g_string_append_printf( gstr, gtr_ngettext( "%1$'d Piece @ %2$s",
  • trunk/gtk/torrent-cell-renderer.c

    r11268 r11522  
    523523        if( x_offset )
    524524            *x_offset = cell_area ? cell_area->x : 0;
    525          
     525
    526526        if( y_offset )
    527527            *y_offset = cell_area ? (int)((cell_area->height - (cell->ypad*2 +h)) / 2.0) : 0;
  • trunk/gtk/tr-core.c

    r11446 r11522  
    11821182       make sure its state is correctly set */
    11831183    action_toggle( "toggle-main-window", TRUE);
    1184    
     1184
    11851185    *success = TRUE;
    11861186    return TRUE;
  • trunk/gtk/tr-window.c

    r11513 r11522  
    865865{
    866866    if( w && gtr_widget_get_realized( GTK_WIDGET( w ) ) )
    867     {   
     867    {
    868868        GdkDisplay * display = gtk_widget_get_display( GTK_WIDGET( w ) );
    869869        GdkCursor * cursor = isBusy ? gdk_cursor_new_for_display( display, GDK_WATCH ) : NULL;
     
    873873
    874874        if( cursor )
    875             gdk_cursor_unref( cursor ); 
    876     }
    877 }
     875            gdk_cursor_unref( cursor );
     876    }
     877}
  • trunk/gtk/util.c

    r11314 r11522  
    124124    const int64_t ib = (int64_t)(b * pow( 10, decimal_places ) );
    125125    if( ia < ib ) return -1;
    126     if( ia > ib ) return  1; 
     126    if( ia > ib ) return  1;
    127127    return 0;
    128128}
  • trunk/libtransmission/history.h

    r11425 r11522  
    2121 * A generic short-term memory object that remembers how many times
    2222 * something happened over the last N seconds.
    23  * 
     23 *
    2424 * For example, it could count how many are bytes transferred
    2525 * to estimate the speed over the last N seconds.
  • trunk/libtransmission/list.h

    r11023 r11522  
    101101                       TrListCompareFunc compare_func );
    102102
    103 /** 
    104  * @brief Insert in an ordered list 
    105  * @param list pointer to the list 
    106  * @param item the item to be inserted 
    107  * @param compare the comparison function. 
    108  */ 
     103/**
     104 * @brief Insert in an ordered list
     105 * @param list pointer to the list
     106 * @param item the item to be inserted
     107 * @param compare the comparison function.
     108 */
    109109void tr_list_insert_sorted( tr_list          ** list,
    110110                            void              * data,
  • trunk/libtransmission/peer-common.h

    r10800 r11522  
    4040        larger than this size. */
    4141    MAX_BLOCK_SIZE = ( 1024 * 16 )
    42    
    4342};
    4443
  • trunk/libtransmission/session.h

    r11512 r11522  
    182182
    183183    double                       desiredRatio;
    184    
     184
    185185    uint16_t                     idleLimitMinutes;
    186186
     
    227227struct tr_bindsockets * tr_sessionGetBindSockets( tr_session * );
    228228
    229 int tr_sessionCountTorrents( const tr_session * session ); 
     229int tr_sessionCountTorrents( const tr_session * session );
    230230
    231231enum
  • trunk/libtransmission/torrent.c

    r11506 r11522  
    23082308    tr_file_index_t f;
    23092309    const tr_info * inf = tr_torrentInfo( tor );
    2310  
    2311     /* if we've never checked this piece, then it needs to be checked */ 
     2310
     2311    /* if we've never checked this piece, then it needs to be checked */
    23122312    if( !inf->pieces[p].timeChecked ) {
    23132313        tr_tordbg( tor, "[LAZY] piece %zu needs to be tested because it's never been tested", (size_t)p );
  • trunk/libtransmission/torrent.h

    r11506 r11522  
    186186    tr_bool                    dhtAnnounceInProgress;
    187187    tr_bool                    dhtAnnounce6InProgress;
    188    
     188
    189189    time_t                     lpdAnnounceAt;
    190190
     
    418418 * @brief Test a piece against its info dict checksum
    419419 * @return true if the piece's passes the checksum test
    420  */ 
     420 */
    421421tr_bool tr_torrentCheckPiece( tr_torrent * tor, tr_piece_index_t pieceIndex );
    422422
  • trunk/libtransmission/tr-getopt.c

    r10782 r11522  
    6161                    int               argWidth )
    6262{
    63     int len; 
     63    int len;
    6464    const char * longName   = opt->longName ? opt->longName : "";
    6565    const char * shortName  = opt->shortName ? opt->shortName : "";
  • trunk/libtransmission/transmission.h

    r11506 r11522  
    18561856    /** The last time we uploaded or downloaded piece data on this torrent. */
    18571857    time_t    activityDate;
    1858    
     1858
    18591859    /** Number of seconds since the last activity (or since started).
    18601860        -1 if activity is not seeding or downloading. */
  • trunk/qt/favicon.cc

    r11092 r11522  
    5353    {
    5454        hasBeenScanned = true;
    55    
     55
    5656        QDir cacheDir( getCacheDir( ) );
    5757        cacheDir.mkpath( cacheDir.absolutePath( ) );
  • trunk/qt/file-tree.cc

    r11405 r11522  
    697697
    698698    // handle using the keyboard to toggle the
    699     // wanted/unwanted state or the file priority 
     699    // wanted/unwanted state or the file priority
    700700    else if( event->type() == QEvent::KeyPress )
    701701    {
  • trunk/qt/filterbar.cc

    r11423 r11522  
    266266/****
    267267*****
    268 ***** 
     268*****
    269269*****
    270270****/
     
    386386/****
    387387*****
    388 ***** 
     388*****
    389389*****
    390390****/
     
    414414    h->addWidget( myTrackerCombo, 1 );
    415415    h->addSpacing( hmargin*2 );
    416    
     416
    417417    myLineEdit = new QLineEdit( this );
    418418    h->addWidget( myLineEdit );
  • trunk/qt/torrent-model.cc

    r11092 r11522  
    217217        beginRemoveRows( QModelIndex(), row, row );
    218218        // make the myIdToRow map consistent with list view/model
    219         for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i ) 
     219        for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i )
    220220            if( i.value() > row )
    221221                --i.value();
  • trunk/qt/tracker-delegate.cc

    r11284 r11522  
    5454
    5555    QPixmap favicon = info.st.getFavicon( );
    56    
     56
    5757    const QString text = TrackerDelegate :: getText( info );
    5858    QTextDocument textDoc;
  • trunk/qt/tracker-delegate.h

    r11284 r11522  
    3939
    4040    protected:
    41         QString getText( const TrackerInfo& ) const; 
     41        QString getText( const TrackerInfo& ) const;
    4242        QSize margin( const QStyle& style ) const;
    4343        virtual QSize sizeHint( const QStyleOptionViewItem&, const TrackerInfo& ) const;
  • trunk/qt/utils.h

    r11092 r11522  
    3535        static void toStderr( const QString& qstr );
    3636
    37         /// 
     37        ///
    3838        /// URLs
    3939        ///
  • trunk/utils/edit.c

    r11160 r11522  
    138138        }
    139139    }
    140        
    141140
    142141    return changed;
  • trunk/utils/show.c

    r11382 r11522  
    1515
    1616#define CURL_DISABLE_TYPECHECK /* otherwise -Wunreachable-code goes insane */
    17 #include <curl/curl.h> 
     17#include <curl/curl.h>
    1818
    1919#include <event.h> /* struct evbuffer */
     
    128128
    129129    printf( "\nTRACKERS\n" );
    130     for( i=0; i<(int)inf->trackerCount; ++i ) 
     130    for( i=0; i<(int)inf->trackerCount; ++i )
    131131    {
    132132        if( prevTier != inf->trackers[i].tier )
Note: See TracChangeset for help on using the changeset viewer.