Changeset 11359
- Timestamp:
- Oct 30, 2010, 1:48:45 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tr-dht.c
r11308 r11359 59 59 #include "trevent.h" /* tr_runInEventThread() */ 60 60 #include "utils.h" 61 #include "version.h"62 61 63 62 static int dht_socket = -1, dht6_socket = -1; … … 326 325 const uint8_t * raw; 327 326 size_t len, len6; 328 char v[5];329 327 struct bootstrap_closure * cl; 330 328 … … 388 386 } 389 387 390 v[0] = 'T'; 391 v[1] = 'R'; 392 v[2] = MAJOR_VERSION; 393 v[3] = MINOR_VERSION; 394 rc = dht_init( dht_socket, dht6_socket, myid, (const unsigned char*)v ); 395 if(rc < 0) 388 rc = dht_init( dht_socket, dht6_socket, myid, NULL ); 389 if( rc < 0 ) 396 390 goto fail; 397 391
Note: See TracChangeset
for help on using the changeset viewer.