updated to use argv[1]
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5282 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2e814a410e
commit
b0648a6542
@ -38,9 +38,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
BDataIO *source;
|
||||
if (SEEKABLE)
|
||||
source = new BFile(FILENAME, O_RDWR);
|
||||
source = new BFile(argc == 2 ? argv[1] : FILENAME, O_RDWR);
|
||||
else
|
||||
source = new FileDataIO(FILENAME, O_RDWR);
|
||||
source = new FileDataIO(argc == 2 ? argv[1] : FILENAME, O_RDWR);
|
||||
|
||||
TRACE("main: calling setup...\n");
|
||||
|
||||
|
@ -38,9 +38,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
BDataIO *source;
|
||||
if (SEEKABLE)
|
||||
source = new BFile(FILENAME, O_RDWR);
|
||||
source = new BFile(argc == 2 ? argv[1] : FILENAME, O_RDWR);
|
||||
else
|
||||
source = new FileDataIO(FILENAME, O_RDWR);
|
||||
source = new FileDataIO(argc == 2 ? argv[1] : FILENAME, O_RDWR);
|
||||
|
||||
TRACE("main: calling setup...\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user