Changeset 768 for trunk/libtransmission


Ignore:
Timestamp:
Aug 13, 2006, 9:38:19 PM (15 years ago)
Author:
livings124
Message:

Add uTorrent to clients.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r261 r768  
    5858                      id[3], id[4], id[5], id[6] );
    5959        }
     60        else if( !memcmp( &id[1], "UT", 2 ) )
     61        {
     62            asprintf( &ret, "uTorrent %c.%d", id[3],
     63                        ( id[4] - '0' ) * 10 + ( id[5] - '0' )  );
     64        }
    6065    }
    6166    else if( !memcmp( &id[4], "----", 4 ) )
  • trunk/libtransmission/transmission.c

    r767 r768  
    509509void tr_torrentPeersFree( tr_peer_stat_t * peers, int peerCount )
    510510{
     511    if (peers == NULL)
     512        return;
     513
    511514    int i;
    512515    for (i = 0; i < peerCount; i++)
    513         free(peers[i].client);
     516        free( peers[i].client );
    514517
    515518    free( peers );
Note: See TracChangeset for help on using the changeset viewer.