Changeset 1704


Ignore:
Timestamp:
Apr 11, 2007, 8:27:41 PM (14 years ago)
Author:
livings124
Message:

update peer id to include maintenance number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r1600 r1704  
    5252    }
    5353
    54     /* Generate a peer id : "-TRxxyy-" + 12 random alphanumeric
    55        characters, where xx is the major version number and yy the
    56        minor version number (Azureus-style) */
    57     snprintf( h->id, sizeof h->id, "-TR%02d%02d-",
    58               VERSION_MAJOR, VERSION_MINOR );
     54    /* Generate a peer id : "-TRxxyz-" + 12 random alphanumeric
     55       characters, where xx is the major version number, y is the
     56       minor version number, and z is the maintenance number (Azureus-style) */
     57    snprintf( h->id, sizeof h->id, "-TR%02d%01d%01d-",
     58              VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE );
    5959    for( i = 8; i < TR_ID_LEN; i++ )
    6060    {
Note: See TracChangeset for help on using the changeset viewer.