diff options
Diffstat (limited to 'src/mongo/s/mongos.cpp')
-rw-r--r-- | src/mongo/s/mongos.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/s/mongos.cpp b/src/mongo/s/mongos.cpp index d9cc1790464..131cbd4ee73 100644 --- a/src/mongo/s/mongos.cpp +++ b/src/mongo/s/mongos.cpp @@ -39,12 +39,11 @@ // WindowsCommandLine object converts these wide character strings to a UTF-8 coded equivalent // and makes them available through the argv() and envp() members. This enables mongoSMain() // to process UTF-8 encoded arguments and environment variables without regard to platform. -int wmain(int argc, wchar_t* argvW[], wchar_t* envpW[]) { - mongo::WindowsCommandLine wcl(argc, argvW, envpW); - mongo::exitCleanly(mongo::mongos_main(argc, wcl.argv(), wcl.envp())); +int wmain(int argc, wchar_t* argvW[]) { + mongo::exitCleanly(mongo::mongos_main(argc, mongo::WindowsCommandLine(argc, argvW).argv())); } #else -int main(int argc, char* argv[], char** envp) { - mongo::exitCleanly(mongo::mongos_main(argc, argv, envp)); +int main(int argc, char* argv[]) { + mongo::exitCleanly(mongo::mongos_main(argc, argv)); } #endif |