diff options
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 1407522..03e7bd8 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -227,6 +227,7 @@ void *map_file( char *file_name ) { | |||
227 | char *map; | 227 | char *map; |
228 | if( file_name ) { | 228 | if( file_name ) { |
229 | int file_desc=open(file_name,O_RDWR|O_CREAT|O_NDELAY,0644); | 229 | int file_desc=open(file_name,O_RDWR|O_CREAT|O_NDELAY,0644); |
230 | printf( "%s\n", file_name ); | ||
230 | if( file_desc < 0) return 0; | 231 | if( file_desc < 0) return 0; |
231 | lseek( file_desc, OT_HUGE_FILESIZE, SEEK_SET ); | 232 | lseek( file_desc, OT_HUGE_FILESIZE, SEEK_SET ); |
232 | write( file_desc, "_", 1 ); | 233 | write( file_desc, "_", 1 ); |
@@ -263,8 +264,6 @@ int init_logic( char *directory ) { | |||
263 | torrents_list = map_file( NULL ); | 264 | torrents_list = map_file( NULL ); |
264 | torrents_count = 0; | 265 | torrents_count = 0; |
265 | 266 | ||
266 | printf( "%08x %08x\n", scratch_space, torrents_list ); | ||
267 | |||
268 | if( !scratch_space || !torrents_list ) { | 267 | if( !scratch_space || !torrents_list ) { |
269 | if( scratch_space || torrents_list ) | 268 | if( scratch_space || torrents_list ) |
270 | unmap_file( NULL, scratch_space ? (void*)scratch_space : (void*)torrents_list, 0 ); | 269 | unmap_file( NULL, scratch_space ? (void*)scratch_space : (void*)torrents_list, 0 ); |