Changeset 6499
- Timestamp:
- Aug 12, 2008, 5:33:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/clients.c
r6490 r6499 134 134 135 135 return TRUE; 136 } 137 138 static int 139 decodeBitSpiritClient( char * buf, size_t buflen, const uint8_t * id ) 140 { 141 const int isBS = !memcmp( id+2, "BS", 2 ); 142 if( isBS ) 143 { 144 const int version = id[1] ? id[1] : 1; 145 tr_snprintf( buf, buflen, "BitSpirit v%d", version ); 146 } 147 return isBS; 136 148 } 137 149 … … 292 304 if( decodeBitCometClient( buf, buflen, id ) ) 293 305 return; 306 if( decodeBitSpiritClient( buf, buflen, id ) ) 307 return; 294 308 295 309 /* Clients with no version */
Note: See TracChangeset
for help on using the changeset viewer.