diff options
| author | erdgeist <> | 2007-11-21 01:57:39 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-11-21 01:57:39 +0000 |
| commit | c5e5569770db281d46ce56c3bf603f8e28c29f68 (patch) | |
| tree | 65dcc82d2ef8f57a48dad4cef668d41797948aad | |
| parent | acaf7ae2b34d57ba1b289d4902b2252dadb6b905 (diff) | |
Fixing mmap allocation went to ot_mutex.c. Clean all torrents moved to ot_clean.c. Also make static buffers static
| -rw-r--r-- | trackerlogic.h | 4 |
1 files changed, 0 insertions, 4 deletions
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; | |||
| 46 | #define OT_POOLS_TIMEOUT (60*5) | 46 | #define OT_POOLS_TIMEOUT (60*5) |
| 47 | 47 | ||
| 48 | /* From opentracker.c */ | 48 | /* From opentracker.c */ |
| 49 | extern char static_inbuf[8192]; | ||
| 50 | extern char static_outbuf[8192]; | ||
| 51 | extern time_t ot_start_time; | 49 | extern time_t ot_start_time; |
| 52 | extern time_t g_now; | 50 | extern time_t g_now; |
| 53 | #define NOW (g_now/OT_POOLS_TIMEOUT) | 51 | #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 | |||
| 105 | size_t return_peers_for_torrent( ot_hash *hash, size_t amount, char *reply, int is_tcp ); | 103 | size_t return_peers_for_torrent( ot_hash *hash, size_t amount, char *reply, int is_tcp ); |
| 106 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, int amount, char *reply ); | 104 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, int amount, char *reply ); |
| 107 | size_t return_udp_scrape_for_torrent( ot_hash *hash, char *reply ); | 105 | size_t return_udp_scrape_for_torrent( ot_hash *hash, char *reply ); |
| 108 | void clean_all_torrents( void ); | ||
| 109 | 106 | ||
| 110 | /* Helper, before it moves to its own object */ | 107 | /* Helper, before it moves to its own object */ |
| 111 | void fix_mmapallocation( void *buf, size_t old_alloc, size_t new_alloc ); | ||
| 112 | void free_peerlist( ot_peerlist *peer_list ); | 108 | void free_peerlist( ot_peerlist *peer_list ); |
| 113 | 109 | ||
| 114 | #endif | 110 | #endif |
