summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/minimal/Server.cpp')
-rw-r--r--cpp/demo/Ice/minimal/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Ice/minimal/Server.cpp b/cpp/demo/Ice/minimal/Server.cpp
index cf9fde4d9ba..f74fe08dee0 100644
--- a/cpp/demo/Ice/minimal/Server.cpp
+++ b/cpp/demo/Ice/minimal/Server.cpp
@@ -13,13 +13,13 @@
using namespace std;
int
-main()
+main(int argc, char* argv[])
{
Ice::CommunicatorPtr communicator;
try
{
- communicator = Ice::initialize();
+ communicator = Ice::initialize(argc, argv);
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Hello", "tcp -p 10000");
adapter->add(new HelloI, communicator->stringToIdentity("hello"));
adapter->activate();