Ignore:
Timestamp:
Aug 10, 2009, 8:04:08 PM (12 years ago)
Author:
charles
Message:

(trunk) remove trailing spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8823 r8889  
    182182        if( !success ) /* if nothing else works, do it the old-fashioned way */
    183183        {
    184             uint8_t buf[ 4096 ]; 
    185             memset( buf, 0, sizeof( buf ) ); 
    186             success = TRUE; 
    187             while ( success && ( length > 0 ) ) 
    188             { 
    189                 const int thisPass = MIN( length, sizeof( buf ) ); 
    190                 success = write( fd, buf, thisPass ) == thisPass; 
    191                 length -= thisPass; 
    192             } 
     184            uint8_t buf[ 4096 ];
     185            memset( buf, 0, sizeof( buf ) );
     186            success = TRUE;
     187            while ( success && ( length > 0 ) )
     188            {
     189                const int thisPass = MIN( length, sizeof( buf ) );
     190                success = write( fd, buf, thisPass ) == thisPass;
     191                length -= thisPass;
     192            }
    193193        }
    194194
     
    317317        if( preallocateFileFull( filename, desiredFileSize ) )
    318318            tr_inf( _( "Preallocated file \"%s\"" ), filename );
    319    
     319
    320320    /* open the file */
    321321    flags = doWrite ? ( O_RDWR | O_CREAT ) : O_RDONLY;
     
    447447
    448448        assert( winner >= 0 );
    449        
     449
    450450        if( fileIsOpen( &gFd->openFiles[winner] ) )
    451451        {
     
    577577    if( s >= 0 )
    578578    {
    579         /* "The ss_family field of the sockaddr_storage structure will always 
    580          * align with the family field of any protocol-specific structure." */ 
    581         if( sock.ss_family == AF_INET ) 
     579        /* "The ss_family field of the sockaddr_storage structure will always
     580         * align with the family field of any protocol-specific structure." */
     581        if( sock.ss_family == AF_INET )
    582582        {
    583583            struct sockaddr_in *si;
     
    585585            s.dummy = sock;
    586586            si = &s.si;
    587             addr->type = TR_AF_INET; 
    588             addr->addr.addr4.s_addr = si->sin_addr.s_addr; 
    589             *port = si->sin_port; 
    590         } 
    591         else 
    592         { 
     587            addr->type = TR_AF_INET;
     588            addr->addr.addr4.s_addr = si->sin_addr.s_addr;
     589            *port = si->sin_port;
     590        }
     591        else
     592        {
    593593            struct sockaddr_in6 *si;
    594594            union { struct sockaddr_storage dummy; struct sockaddr_in6 si; } s;
    595595            s.dummy = sock;
    596596            si = &s.si;
    597             addr->type = TR_AF_INET6; 
     597            addr->type = TR_AF_INET6;
    598598            addr->addr.addr6 = si->sin6_addr;
    599             *port = si->sin6_port; 
    600         } 
     599            *port = si->sin6_port;
     600        }
    601601        ++gFd->socketCount;
    602602    }
Note: See TracChangeset for help on using the changeset viewer.