summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 8e33695..3d9ca5e 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -1,6 +1,6 @@
1/* This software was written by Dirk Engling <erdgeist@erdgeist.org> 1/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever. 2 It is considered beerware. Prost. Skol. Cheers or whatever.
3 3
4 $id$ */ 4 $id$ */
5 5
6/* System */ 6/* System */
@@ -277,7 +277,7 @@ size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, PROT
277 ot_torrent *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch ); 277 ot_torrent *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch );
278 ot_peerlist *peer_list; 278 ot_peerlist *peer_list;
279 279
280#ifdef WANT_SYNC_LIVE 280#ifdef WANT_SYNC_LIVE
281 if( proto != FLAG_MCA ) 281 if( proto != FLAG_MCA )
282 livesync_tell( hash, peer, PEER_FLAG_STOPPED ); 282 livesync_tell( hash, peer, PEER_FLAG_STOPPED );
283#endif 283#endif
@@ -294,7 +294,7 @@ size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, PROT
294 ((uint32_t*)reply)[3] = ((uint32_t*)reply)[4] = 0; 294 ((uint32_t*)reply)[3] = ((uint32_t*)reply)[4] = 0;
295 return (size_t)20; 295 return (size_t)20;
296 } 296 }
297 297
298 if( proto == FLAG_MCA ) 298 if( proto == FLAG_MCA )
299 return 0; 299 return 0;
300 } 300 }
@@ -343,7 +343,7 @@ int trackerlogic_init( const char * const serverdir ) {
343 343
344 srandom( time(NULL) ); 344 srandom( time(NULL) );
345 g_tracker_id = random(); 345 g_tracker_id = random();
346 346
347 /* Initialise background worker threads */ 347 /* Initialise background worker threads */
348 mutex_init( ); 348 mutex_init( );
349 clean_init( ); 349 clean_init( );