Changeset 768


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

Add uTorrent to clients.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r764 r768  
    257257                4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; };
    258258                4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; };
    259                 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
     259                4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
    260260                4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; };
    261261                4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; };
  • 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.