1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-11 22:52:53 +00:00

(trunk libT) remove some oddness in tr_open_file_for_scanning()

This commit is contained in:
Charles Kerr 2009-05-06 13:33:40 +00:00
parent 05494f4ce5
commit 1ee9ce9da7

View file

@ -210,10 +210,7 @@ tr_open_file_for_scanning( const char * filename )
/* build the flags */
flags = O_RDONLY;
#ifdef O_SEQUENTIAL
if( sequential ) flags |= O_SEQUENTIAL;
#endif
#ifdef O_RANDOM
if( !sequential ) flags |= O_RANDOM
flags |= O_SEQUENTIAL;
#endif
#ifdef O_BINARY
flags |= O_BINARY;