summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
authorerdgeist <>2006-12-09 12:50:42 +0000
committererdgeist <>2006-12-09 12:50:42 +0000
commit0de82a8925e38e39f01a732ee22b27607b820d0b (patch)
tree4c0d6b437f486ab319a2d6aec32e1d3c8aca502b /trackerlogic.c
parent932242eee7d99559bf8e0b4cec2b140f567a8149 (diff)
Fixed parser
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c3
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);
230printf( "%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 );