identify dev builds of transmission correctly in the peers list

This commit is contained in:
Mitchell Livingston 2007-07-16 21:57:22 +00:00
parent 2f173fd4d4
commit 091a56d4ca
2 changed files with 7 additions and 6 deletions

View File

@ -55,9 +55,9 @@ char * tr_clientForId( uint8_t * id )
}
else
{
asprintf( &ret, "Transmission %d.%c%c",
charToInt( id[3] ) * 10 + charToInt( id[4] ),
id[5], id[6] );
asprintf( &ret, "Transmission %d.%c%c%s",
charToInt( id[3] ), id[4], id[5],
id[6] == 'Z' ? " (dev)" : "" );
}
}
else if( !memcmp( &id[1], "AZ", 2 ) )

View File

@ -28,9 +28,10 @@
#include "net.h"
#include "shared.h"
/* Generate a peer id : "-TRxxyz-" + 12 random alphanumeric
characters, where xx is the major version number, y is the
minor version number, and z is the maintenance number (Azureus-style) */
/* Generate a peer id : "-TRxyzb-" + 12 random alphanumeric
characters, where x is the major version number, y is the
minor version number, z is the maintenance number, and b
designates beta (Azureus-style) */
void
tr_peerIdNew ( char * buf, int buflen )
{