summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
authorerdgeist <>2006-12-07 02:58:02 +0000
committererdgeist <>2006-12-07 02:58:02 +0000
commit1c1fd9fe4a2ff21bad94190875c12bd353c13360 (patch)
tree9e480aaeae5f168c7b4e80fb5a7f0e40d15b96aa /trackerlogic.c
parente31f00dac1cd4d30c192d3287d3c726e3b2a0372 (diff)
Started to implement glue
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index a19f9d4..735041e 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -250,10 +250,13 @@ void count_peers_and_seeds( ot_peer peer_list, unsigned long *peers, unsigned lo
250 } while( compare_ip_port( peer_list + *peers, peer_list + *peers - 1 ) < 0 ); 250 } while( compare_ip_port( peer_list + *peers, peer_list + *peers - 1 ) < 0 );
251} 251}
252 252
253int init_logic( ) { 253int init_logic( char *directory ) {
254 glob_t globber; 254 glob_t globber;
255 int i; 255 int i;
256 256
257 if( directory )
258 chdir( directory );
259
257 scratch_space = map_file( "" ); 260 scratch_space = map_file( "" );
258 torrents_list = map_file( "" ); 261 torrents_list = map_file( "" );
259 torrents_count = 0; 262 torrents_count = 0;