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:
beveloper 2003-11-08 13:41:15 +00:00
parent 2e814a410e
commit b0648a6542
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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");