From: erdgeist <> Date: Wed, 21 Nov 2007 01:57:39 +0000 (+0000) Subject: Fixing mmap allocation went to ot_mutex.c. Clean all torrents moved to ot_clean.c... X-Git-Tag: OPENTRACKER_WITH_BATCHSYNC~102 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c5e5569770db281d46ce56c3bf603f8e28c29f68;p=thirdparty%2Fopentracker.git Fixing mmap allocation went to ot_mutex.c. Clean all torrents moved to ot_clean.c. Also make static buffers static --- diff --git a/trackerlogic.h b/trackerlogic.h index 5e97e7c..1eff6df 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -46,8 +46,6 @@ typedef time_t ot_time; #define OT_POOLS_TIMEOUT (60*5) /* From opentracker.c */ -extern char static_inbuf[8192]; -extern char static_outbuf[8192]; extern time_t ot_start_time; extern time_t g_now; #define NOW (g_now/OT_POOLS_TIMEOUT) @@ -105,10 +103,8 @@ size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int size_t return_peers_for_torrent( ot_hash *hash, size_t amount, char *reply, int is_tcp ); size_t return_tcp_scrape_for_torrent( ot_hash *hash, int amount, char *reply ); size_t return_udp_scrape_for_torrent( ot_hash *hash, char *reply ); -void clean_all_torrents( void ); /* Helper, before it moves to its own object */ -void fix_mmapallocation( void *buf, size_t old_alloc, size_t new_alloc ); void free_peerlist( ot_peerlist *peer_list ); #endif