diff options
Diffstat (limited to 'juniper/src/test/testenv.cpp')
-rw-r--r-- | juniper/src/test/testenv.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/juniper/src/test/testenv.cpp b/juniper/src/test/testenv.cpp index 2dec01ffe3e..769c24b829c 100644 --- a/juniper/src/test/testenv.cpp +++ b/juniper/src/test/testenv.cpp @@ -16,12 +16,12 @@ Config* TestConfig; Juniper * _Juniper; -TestEnv::TestEnv(FastOS_Application* app, const char* propfile) : +TestEnv::TestEnv(int argc, char **argv, const char* propfile) : _props(), _config(), _juniper(), _wordFolder() { int c; - while ((c = getopt(app->_argc, app->_argv, "d:hcm:")) != EOF) + while ((c = getopt(argc, argv, "d:hcm:")) != EOF) { switch (c) { @@ -40,16 +40,16 @@ TestEnv::TestEnv(FastOS_Application* app, const char* propfile) : break; case 'h': default: - Usage(app->_argv[0]); + Usage(argv[0]); return; } } int expected_args = 0; - if (app->_argc - optind < expected_args) + if (argc - optind < expected_args) { - Usage(app->_argv[0]); + Usage(argv[0]); return; } |