Changeset 12247


Ignore:
Timestamp:
Mar 28, 2011, 1:37:46 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) strip trailing whitespace

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-udp.c

    r12238 r12247  
    5353{
    5454    int sockfd;
    55    
     55
    5656    if( ai->ai_addr->sa_family == AF_INET )
    5757        sockfd = session->udp_socket;
     
    488488    if ( errcode )
    489489    {
    490         char * errmsg = tr_strdup_printf( _( "DNS Lookup failed: %s" ), 
     490        char * errmsg = tr_strdup_printf( _( "DNS Lookup failed: %s" ),
    491491                                          evdns_err_to_string( errcode ) );
    492492        dbgmsg( tracker->key, "%s", errmsg );
     
    653653    /* if the address info is too old, expire it */
    654654    if( tracker->addr && ( tracker->addr_expiration_time <= now ) ) {
    655         dbgmsg( tracker->host, "Expiring old DNS result" );     
     655        dbgmsg( tracker->host, "Expiring old DNS result" );
    656656        evutil_freeaddrinfo( tracker->addr );
    657657        tracker->addr = NULL;
     
    672672        hints.ai_protocol = IPPROTO_UDP;
    673673        tracker->is_asking_dns = true;
    674         dbgmsg( tracker->host, "Trying a new DNS lookup" );     
     674        dbgmsg( tracker->host, "Trying a new DNS lookup" );
    675675        evdns_getaddrinfo( tracker->session->evdns_base,
    676676                           tracker->host, NULL, &hints,
     
    825825        tr_free( tau );
    826826    }
    827        
    828827}
    829828
  • trunk/libtransmission/announcer.c

    r12238 r12247  
    995995                  void                        * vdata )
    996996{
    997    
    998997    struct announce_data * data = vdata;
    999998    tr_announcer * announcer = data->session->announcer;
     
    14971496
    14981497    /* maybe send out some announcements to trackers */
    1499     if( !is_closing ) 
     1498    if( !is_closing )
    15001499        announceMore( announcer );
    15011500
  • trunk/libtransmission/utils.c

    r12246 r12247  
    16091609    /* fallback code by Runner and Juan Carlos Cobas at
    16101610     * http://www.codeproject.com/KB/cpp/endianness.aspx */
    1611     return (((uint64_t)(htonl((int)((x << 32) >> 32))) << 32) | 
     1611    return (((uint64_t)(htonl((int)((x << 32) >> 32))) << 32) |
    16121612                     (unsigned int)htonl(((int)(x >> 32))));
    16131613#endif
     
    16221622    /* fallback code by Runner and Juan Carlos Cobas at
    16231623     * http://www.codeproject.com/KB/cpp/endianness.aspx */
    1624     return (((uint64_t)(ntohl((int)((x << 32) >> 32))) << 32) | 
     1624    return (((uint64_t)(ntohl((int)((x << 32) >> 32))) << 32) |
    16251625                     (unsigned int)ntohl(((int)(x >> 32))));
    16261626#endif
Note: See TracChangeset for help on using the changeset viewer.