mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
(trunk libT) remove some oddness in tr_open_file_for_scanning()
This commit is contained in:
parent
05494f4ce5
commit
1ee9ce9da7
1 changed files with 1 additions and 4 deletions
|
@ -210,10 +210,7 @@ tr_open_file_for_scanning( const char * filename )
|
||||||
/* build the flags */
|
/* build the flags */
|
||||||
flags = O_RDONLY;
|
flags = O_RDONLY;
|
||||||
#ifdef O_SEQUENTIAL
|
#ifdef O_SEQUENTIAL
|
||||||
if( sequential ) flags |= O_SEQUENTIAL;
|
flags |= O_SEQUENTIAL;
|
||||||
#endif
|
|
||||||
#ifdef O_RANDOM
|
|
||||||
if( !sequential ) flags |= O_RANDOM
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef O_BINARY
|
#ifdef O_BINARY
|
||||||
flags |= O_BINARY;
|
flags |= O_BINARY;
|
||||||
|
|
Loading…
Add table
Reference in a new issue